>

locale - Get locale specific information

Synopsis

locale [ -a ]

locale [ -ck ] name ...

Description

The locale utility displays information about the current locale environment to standard output.

In the first synopsis form, locale writes the names and values of locale environment variables. When the -a option is specified, locale writes the names of all of the available locales on the system.

In the second synopsis form, locale writes detailed information about the locale category or keyword specified by name.

Options

-a
Write information about all available locales.
-c
Display the names of the locale categories.
-k
Display the names of the locale keywords.

Operands

The name operand can be one of the following locale categories or keywords:

Exit Status

Related information

Examples

  1. Display the current values of the locale environment variables.
    locale
    
  2. Display the list of available locales on the system.
    locale -a