Name
locale
Synopsis
locale [options
] [name
...]
Print locale-specific information. With no arguments, locale summarizes the current locale. Depending on the arguments, locale prints information about entire locale categories or the value of specific items within a locale. A public locale is one an application can access.
Options
-a
,--all-locales
Print information about all available public locales. The
POSIX
locale should always be available.-c
,--category-name
Provide information about the locale category name. Useful with or without
-k
.-k
,--keyword-name
Print the names and values of the given locale keywords.
-m
,--charmaps
Print the names of the available charmaps.
Environment variables
- LANG
The default value for unset internationalization variables. If not set, the system’s default value is used.
- LC_ADDRESS
Postal settings, country, and language names and abbreviation.
- LC_ALL
When set, overrides the values of all other internationalization variables.
- LC_COLLATE
String and character sorting and comparison settings.
- LC_CTYPE
Character attributes, including case conversion mappings, and categories of characters (whitespace, digit, lower, upper, punctuation, etc.).
- LC_IDENTIFICATION
Information related to the current locale definition, including its title, source, revision, and contact information for its author.
- LC_MEASUREMENT
Measurement units, metric or other.
- LC_MESSAGES
Settings for yes/no prompts and other informative and diagnostic messages.
- LC_MONETARY
Currency formats and symbols.
- LC_NAME
Formats ...
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.