How To Set Locale In Linux?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/set-locale-linux/
PINTEREST
PINTEREST
INSTAGRAM

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

Locale error
Locale error

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.

List Current Locale Setting
List Current Locale Setting

As we can see that here are different locale settings like TIME, ADDRESS , MEASUREMENT, MONETARY etc.

Change Local Variable

We see that LC_ALL is not set and the problem is that some application needs this locale to be set.

update-locale syntax
update-locale syntax

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.

  • 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

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/set-locale-linux/
PINTEREST
PINTEREST
INSTAGRAM
LEARN MORE  How To Download and Install Kali Security and Penetration Test Linux Distribution?