/etc/localtime
File used to configure the time zone of the system. The time zone data for different regions is maintained in the /usr/share/zoneinfo directory. To setup a particular time zone, a symbolic link is created from the /etc/localtime file to the corresponding file in the /usr/share/zoneinfo directory.
/etc/timezone
File that stores the system timezone.
/usr/share/zoneinfo/
The time zone data for different regions is maintained in the /usr/share/zoneinfo directory. To setup a particular time zone, a symbolic link is created from the /etc/localtime file to the corresponding file in the /usr/share/zoneinfo directory.
ASCII
American Standard Code for Information Interchange. ASCII is a 7-bit encoding scheme, used to encode letters, numerals, symbols and device control codes as fixed-length codes. ASCII is originally based on the English alphabet and encodes 128 characters.
ISO-8859
ISO/IEC 8859 is a joint International Organization for Standardization (ISO) and International Electrotechnical Commission (IEC) series of standards for 8-bit character encodings.
LANG
If set, all locale envinrmental variables are set to the the value of LANG.
LC_*
If set, all locale envinrmental variables are set to the the value of LC_*.
LC_ALL
If set, all locale envinrmental variables are set to the the value of LC_ALL.
TZ
Environment variable is used to determine the timezone and how to calculate local time.
UTF-8
UCS Transformation Format – 8 bit. UCS is Universal Character Set upon which many character encodings are based. UTF-8 is increasingly being used as the default character encoding in operating systems, programming languages, APIs and software applications. It is also the dominant character encoding for iInternet.
Unicode
Universal Character Set (UCS), was developed to find a permanent solution to the problem of abundance of character sets used for writing text in different languages. It is a single character set whose goal is to be a superset of all other prior sets and to contain every character used in writing any language, as well as other symbols used in mathematics and engineering.
date
Command used to display or set (must be root) the current date and time. In addition to the many output format options, date is also used to display a relative date ($ date –date=”next mon”), past dates ($ date –date=”1 year ago”), Universal time and the last modification time of a file.
iconv
Command used to convert one character encoding to another. The iconv command is suitable to convert characters in a large number of files.
locale
The locale command without any arguments gives the summary of each locale category.
tzselect
Comman used to determine the timezone value used to set the TZ variable for a particular location by allowing the user to choose the country and location from a set of menus.
Which command is used to list all available locales on the system?
locale -a
locale -A
locale
locale -l
locale -a
Setting which of the following environment variables will change the language and encoding for the current login session to French?
LC_NAME=fr_FR.iso-8859-15
LANG=fr_FR.iso-8859-15
LC_MESSAGES=fr_FR.iso-8859-15
LC_CTYPE=fr_FR.iso-8859-15
LC_MESSAGES=fr_FR.iso-8859-15
What is the behavior of setting C locale?
Strings are displayed as written in the initial code
Strings are translated and then displayed
Strings are always displayed in UTF-8
Strings are displayed as per the user’s LANG setting
Strings are displayed as written in the initial code
UTC is not subjected to daylight saving time.
True or False?
True
False
True
The /etc/localtime file is a flat file containing plain text that is used to configure the system wide time zone.
True or False?
True
False
False
Which file is used to indicate the current time zone on Red Hat systems?
/etc/sysconfig/clock
/etc/sysconfig/time
/etc/sysconfig/tz
/etc/sysconfig/time
/etc/sysconfig/clock
What does UTF-8 mean?
UCS Technology Format
UCS Transformation Format
UCS Transcoding Format
UCS Transfer Format
UCS Transformation Format
UTF-8 is a fixed-width encoding scheme that can represent every character in the Unicode character set.
True or False?
True
False
False
How many bits character encoding is supported by ISO?
8-bit
4-bit
32-bit
16-bit
8-bit