System and processes

The locale command

Shows the locale configuration: language, number format, dates and alphabetical sorting.

Syntax

locale [-a]

Most useful options

-aLists all available locales

Copy-ready examples

$ localeCurrent locale

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • A bad locale can make accents look wrong or make sort order oddly.

Related commands

FAQ

What is LC_ALL?

The variable that, if set, overrides all the other LC_ ones.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course