diff --git a/README.md b/README.md index 88f5c8f..c1445c4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1424 TILs and counting..._ +_1425 TILs and counting..._ --- @@ -1376,6 +1376,7 @@ _1424 TILs and counting..._ - [Forward Multiple Ports Over SSH](unix/forward-multiple-ports-over-ssh.md) - [Generate A SAML Key And Certificate Pair](unix/generate-a-saml-key-and-certificate-pair.md) - [Generate Random 20-Character Hex String](unix/generate-random-20-character-hex-string.md) +- [Get A List Of Locales On Your System](unix/get-a-list-of-locales-on-your-system.md) - [Get Matching Filenames As Output From Grep](unix/get-matching-filenames-as-output-from-grep.md) - [Get The Unix Timestamp](unix/get-the-unix-timestamp.md) - [Global Substitution On The Previous Command](unix/global-substitution-on-the-previous-command.md) diff --git a/unix/get-a-list-of-locales-on-your-system.md b/unix/get-a-list-of-locales-on-your-system.md new file mode 100644 index 0000000..11db566 --- /dev/null +++ b/unix/get-a-list-of-locales-on-your-system.md @@ -0,0 +1,36 @@ +# Get A List Of Locales On Your System + +The `locale -a` command will list all the available locales on your system. + +You'll see a giant list that probably includes these and many more values. + +```bash +$ locale -a + +en_NZ +nl_NL.UTF-8 +pt_BR.UTF-8 +fr_CH.ISO8859-15 +eu_ES.ISO8859-15 +en_US.US-ASCII +af_ZA +bg_BG +cs_CZ.UTF-8 +fi_FI +zh_CN.UTF-8 +eu_ES +sk_SK.ISO8859-2 +nl_BE +fr_BE +sk_SK +en_US.UTF-8 +... +``` + +Each of these locales identifies itself by the language and the manner in which +the language is used in a particular place. For example, `en_NZ` is _English as +it is spoken in New Zealand_. `fr_BE` is _French as it is spoken in Belgium_. +`en_US.UTF-8` is _English as it is spoken in the US, with a UTF-8 character set +encoding_. + +[source](https://www.postgresql.org/docs/current/locale.html#LOCALE-OVERVIEW)