Changing CLI / Bash Locale

Changing locale / time / format settings in the settings / configuration manager in Gnome 3 works fine for my user in Ubuntu 20.04 but the root user is still having default stuff for for instance time settings which in my case is Thai.

Changing that to English is as easy as doing:

geany /etc/default/locale and then doing a search replace of th_TH with en_US.

This can easily be confirmed by just running locale.

You should now see:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.utf8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

Related Posts

Tags: , , , ,