Skip to content


How to change the locale in Linux (using command line)

To display all currently available locales (so that you don’t pick one you don’t have… :D): locale -a.
To display the current locale: locale

To change the current locale, edit /etc/environment (so, nano /etc/environment) and add/edit, for instance:
LANG=en_US.utf-8
LC_ALL=en_US.utf-8

Note that this is case sensitive. And you need to restart the system in order for the changes to take effect. Well, that’s pretty much it already.

For finer tuning and (lots) more details, see Changing your locale on UNIX and Linux systems.

Posted in multimedia.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA