I'm looking for single line terminal commands to:
- check my current regional format or
- set the regional format to English US.
Currently to change this I have to go to Settings->Language Support->Regional Formats
(Distro: Ubuntu 14.04 LTS, should preferably also work in 16.04 LTS)
Best Answer
Regional Formats changes the following variables:
You can use
locale
to check the current set format.If you want to see all the locale available in your system you can use:
To change, for example, the date format to US you can use:
To change it permanently:
You can also manually edit the file
/etc/default/locale
instead ofupdate-locale
, if you wish so. Changes will be applied the next time you log-in.Refer to Locale - Community Help Wiki for more details.
man 5 locale
will you more options to find-tune any of the formats.