Locale Settings V
View all of your current locale settings
To view all of your current locale settings, enter the
/usr/bin/locale
command at the shell prompt. Here is an example:
openSUSE:~ # locale
LANG=POSIX
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL
In this example, only the LANG and the LC_CTYPE variables are actually defined. The other
LC_ variables are automatically populated with the value assigned to LANG.
You can also enter
locale charmap
at the shell prompt to view the type of encoding used.
Here’s an example
openSUSE:~ # locale charmap
UTF-8
ws1:~ #
If you need to localize the system by changing the locale or the encoding, you first must determine what locales have been installed on your system. To do this, use the
–a option
with the locale command to generate a list of all available locales.
You can also use the
–m option
with the locale command to view a list of available encodings.
An example follows:
openSUSE:~ # locale -a
C
POSIX
aa_DJ
aa_DJ.utf8
aa_ER
aa_ER.utf8
....
ws1:~ # locale -m
ANSI_X3.110-1983
ANSI_X3.4-1968
ARMSCII-8
....
LX0-104 Exam Objectives (M)
No comments:
Post a Comment