LinuxCommandLibrary

locale

TLDR

Show current locale settings

$ locale
copy
List all available locales
$ locale --all-locales
copy
List locales with metadata
$ locale --all-locales --verbose
copy
Show date format
$ locale date_fmt
copy

SYNOPSIS

locale [options] [name...]

DESCRIPTION

locale displays information about the current locale settings or lists available locales. It shows environment variables that control language, character encoding, date/time formats, and other regional settings.

PARAMETERS

-a, --all-locales

List all available locales
-v, --verbose
Show verbose locale information
-c, --category-name
Print category names
-k, --keyword-name
Print keyword names
-m, --charmaps
List available character maps

LOCALE CATEGORIES

LC_CTYPE

Character classification and case conversion
LC_COLLATE
String collation order
LC_MESSAGES
Message translations
LC_MONETARY
Currency formatting
LC_NUMERIC
Number formatting
LC_TIME
Date and time formatting

SEE ALSO

Copied to clipboard