Skip to main content

Command Palette

Search for a command to run...

LINUX: locale & localectl — The Linux Locale Settings

Updated
1 min read
LINUX: locale & localectl — The Linux Locale Settings
A

A Tech Lead by profession, a Data Enthusiast and a forever learner. Experienced in DevOps, Cloud, FullStack Development, Data Science, Machine Learning and AI.

You can get or set the locale settings in a linux environment (tried in fedora) by using the command :

localectl

You can remember it as Locale Control

You can also get more locale information by simply executing the command:

locale

To learn all the possible locale languages type this in terminal:

locale -a

To set locale (to change locale language setting), you can do something like this example:

localectl set-locale LANG=fr_FR.utf8

Also to temporarily to execute any command in a different language, prefix the command with the LANG=<appropriate languagr> <command>. For example:

LANG=fr_FR.utf8 date

To learn more about locale always take help of documentations.

More from this blog

A

Anupam Majhi

28 posts

Tech Lead | DevOps, Cloud, FullStack, Data Science, Machine Learning, AI