How To Set Locale In Linux?
Locale is configuration of a Linux system that provides region,keyboard, time related data. Locale is important because it will change the interpretation of the some keyboards etc. If you are getting following warning like Setting locale failed we will look how to solve it
List Current Locale Setting
Listing of current locale settings can be done just issuing locale command. We do not need to provide any option for listing.
As we can see that here are different locale settings like
Change Local Variable
We see that LC_ALL is not set and the problem is that some application needs this locale to be set.
We will use
update-locale command in order to change current locale. We will also provide the locale we want to set which is
en_US.UTF-8 in this example.
$ sudo update-locale LC_ALL="en_US.UTF-8"
- update-locale is command which willupdate locale configuration
- LC_ALL=”en_US.UTF-8″ is the locale variable we want to update
To effect the settings log out and login for locale command