1.6 Given a scenario, configure localization options Flashcards
What is the location for the system time zone on Debian Based Systems?
/etc/timezone
Where is the directory that contains a list of zone files, either directly in the directory or within the subdirectories:
/usr/share/zoneinfo
What command can be used to display and change both locale values and keyboard layouts?
localectl
What command is used to display the system clock?
The timedatectl command is used to display the system clock
What is the date command used for?
the date command is used to display the system clock
What is the command used to display the real-time clock (RTC)?
The hwclock command is used to display the real-time clock (RTC)
What does LC_* refer to?
LC_* refers to a collection of locale settings used to change the way the shell and other programs handle differences based on the geographic region of the user (or a region the user is familiar with). These values can be viewed by executing the locale command
What happens when LC_ALL is used?
When set, LC_ALL will override all other locale settings. This provides an easy means to change all locale settings by modifying one environment variable
[root@OCS ~]# LC_ALL=es_ES.UTF8 man
Explain the LANG variable
When set, LANG will provide a default locale value. This can be overwritten for specific locale features by setting other locale variables. For example, the following would set the default to Spanish but use the date/time formats for English:
[root@OCS ~]# LANG=es_ES.UTF8 LC_TIME=en_US.utf8 man
What is the TZ variable used for?
The TZ variable can be used to set a different time zone than the system default:
[root@OCS ~]# date
Tue Feb 28 21:58:33 PST 2017
[root@OCS ~]# TZ=America/Goose_Bay date
Wed Mar 1 01:59:02 AST 2017
Unicode
An encoding standard that includes ASCII within the first 7 bits (128 characters). The additional bits are used for additional, non-English characters. Unicode has gone through several revisions, including UTF-8, UTF-16, and UCS
ASCII
American Standard Code for Information Interchange (ASCII ) is an English-only encoding format that is limited to 128 characters (a 7-bit code). Extended ASCII can support additional, non-English characters
UTF-8
UTF-8 is a variable-width character encoding capable of encoding all 1,112,064 valid character code points in Unicode using one to four one-byte code units. The encoding is defined by the Unicode Standard