Forrest logo
back to the localectl tool

localectl:tldr:16809

localectl: List available locales.
$ localectl list-locales
try on your machine

The 'localectl list-locales' command is used to list all available keyboard layout and locale configurations on a Linux system using systemd's localectl utility.

In Linux, a locale refers to specific settings related to a particular region or country, such as language, character encoding, currency format, and time format. These settings determine how the system handles sorting, dates, numbers, and language-specific characters.

The 'localectl list-locales' command, when executed in a terminal, provides a list of all available locales on the system. These locales are represented by identifiers, which consist of language codes and country codes. For example, "en_US" represents the English language in the United States, while "fr_FR" represents French in France.

By running this command, you can view all the installed locales on your Linux system. This information can be helpful when configuring language and keyboard preferences or troubleshooting locale-related issues.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the localectl tool