Friday, December 9, 2016

Locale Settings III

Locale Settings III


Locale settings were automatically defined for you based on your selections during the installation process

When you installed your Linux system, your locale settings were automatically defined for you
based on your selections during the installation process. To view them at the shell prompt, you 
can use the echo command. Here is an example:



openSUSE:~ # echo $LC_CTYPE 
en_US.UTF-8
openSUSE:~ #



As you can see in this example, the LC_CYTPE variable was populated on this system during 
installation. This variable defines the default character type and encoding used on the system. As
you can see, this system uses a locale of U.S. English with Unicode text encoding.


Just as an aside, you can also use a locale named C. This locale is very useful if you create a lot
of shell scripts at the shell prompt. It configures the following default locale settings:



• ASCII encoding
• POSIX character classes
• U.S. English time, date, number, and currency formats




LX0-104 Exam Objectives (M)

No comments:

Post a Comment