Chapter 9 Adjusting Localization Options

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What file do Red Hat-based systems use to define the time zone for the Linux system? A. /etc/localtime B. /etc/timezone C. /usr/share/zoneinfo D. /usr/share/timezone E. /usr/share/localtime

A. /etc/localtime Red Hat-based systems use the /etc/localtime file to store the appropriate time zone file for the location where the system is running, so option A is correct. The /etc/timezone file is normally used by Debian-based systems, so option B is incorrect. The /usr/share/zoneinfo folder stores time zone files that you must copy to the /etc/localtime file, so option C is incorrect. The /usr/share/timezone and /usr/share/localtime folders are incorrect folder names, so options D and E and incorrect.

What two character sets use a transformation code to store characters? A. UTF-8 B. UTF-16 C. ASCII D. Unicode E. locale

A. UTF-8 B. UTF-16 The UTF-8 and UTF-16 character sets use a transformation process to reduce the Unicode character set into 1 byte (UTF-8) or 2 byte (UTF-16) values, so options A and B are correct. The ASCII character set doesn't transform any characters, so option C is incorrect. The Unicode character set also doesn't transform characters, so option D is incorrect. locale is a Linux command and not a character set, so option E is incorrect.

Which command do you use to display the current time and date using a specific output format? A. date B. time C. timedatectl D. localectl E. hwclock

A. date The date command allows you to specify a format for displaying the time and date, so option A is correct. The time command displays the amount of CPU time an application consumes, not the current time and date, so option B is incorrect. The timedatectl command displays the current time and date but doesn't allow you to format the output, so option C is incorrect. The localectl command displays the localization settings for the system, but not the current time and date, so option D is incorrect. The hwclock command displays the current hardware time but doesn't allow you to specify the format, so option E is incorrect.

Which commands allow you to set the Linux system time to the workstation BIOS clock time? (Choose all that apply.) A. hwclock B. date C. time D. timedatectl E. localectl

A. hwclock D. timedatectl The hwclock and timedatectl commands allow you to synchronize the Linux system time to the workstation BIOS time, so options A and D are correct. The date command allows you to change the date and time, but it doesn't allow you to synchronize it with the workstation BIOS time, so option B is incorrect. The time command allows you to display the amount of CPU time an application consumes, but it doesn't allow you to synchronize the system time with the workstation BIOS time, so option C is incorrect. The localectl command is used for localization, not for setting the time, so option E is incorrect.

A __________ determines the time relative to the UTC time in a specific location. A. time zone B. localization C. character set D. locale E. hardware clock

A. time zone Each time zone determines the offset from UTC that applies to a specific location, so option A is correct. The localization determines the character set used to display language characters but not the time, so option B is incorrect. The character set determines how to display the language characters but not the time, so option C is incorrect. The locale determines how Linux displays the time but not the actual time setting, so option D is incorrect. The hardware clock is the time the physical workstation or server is set to in BIOS or UEFI; it doesn't necessarily represent the time relative to UTC and can even be stored as a UTC value, so option E is incorrect.

Which LC_ environment variable determines how Linux displays dollar and cents values? A. LC_NUMERIC B. LC_MONETARY C. LC_CTYPE D. LC_TIME E. LC_COLLATE

B. LC_MONETARY The LC_MONETARY environment variable determines the character set used for displaying monetary values, so option B is correct. The LC_NUMERIC environment variable determines how Linux displays numeric values, so option A is incorrect. The LC_CTYPE environment variable determines the default character set used by programs but not necessarily only for monetary values, so option C is incorrect. The LC_TIME environment variable determines how the Linux system displays time, not monetary values, so option D is incorrect. The LC_COLLATE environment variable determines how Linux sorts alpha characters, not how it displays monetary values, so option E is incorrect.

___________ is the ability to adapt a Linux system to a specific language. A. locale B. Localization C. Character set D. Unicode E. ASCII

B. Localization Localization is the process of adapting a Linux system's character set to use a local language, so option B is correct. The locale command allows you to view the character sets, but it doesn't adapt the Linux system to the locale environment, so option A is incorrect. The character set is used to specify language characters, but it doesn't adapt the Linux system to a specific language, so option C is incorrect. Unicode and ASCII are two types of character sets, and they don't adapt the Linux system to a specific language, so options D and E are incorrect.

What network time package do Red Hat-based Linux systems use to synchronize the system time with a network time server? A. ntpd B. chrony C. localectl D. timedatectl E. timesyncd

B. chrony Red Hat-based Linux systems utilize the chrony software package for connecting to network time servers. The ntpd package is a legacy software package and not often used, so option A is incorrect. The localectl command isn't used for setting time, so option C is incorrect. While you can set the local time using the timedatectl command, you can't use it to set the time using a network time server, so option D is incorrect. Although Red Hat-based systems utilize the Systemd utilities, they don't use the timesyncd program for network time, so option E is incorrect.

Which Linux command changes the value of a localization environment variable? A. time B. export C. locale D. date E. hwclock

B. export The export command sets the value associated with an environment variable, so option B is correct. The time command displays the amount of time an application used on the system, not the values of an environment variable, so option A is incorrect. The locale command displays the values of the localization environment variables but doesn't allow you to change them, so option C is incorrect. The date command displays and sets the time and date values but not the localization environment variables, so option D is incorrect. The hwclock command displays and sets the hardware clock but not the localization environment variables, so option E is incorrect.

Which Linux commands allow you to retrieve the time from the physical workstation or server? (Choose all that apply.) A. date B. hwclock C. time D. locale E. timedatectl

B. hwclock E. timedatectl Both the hwclock and timedatectl commands retrieve the time and date from the physical workstation or server, so options B and E are correct. The date command displays the system time and date, not the time and date set on the physical hardware, so option A is incorrect. The time command displays the amount of time a program uses on the system, not the physical hardware time and date on the workstation or server, so option C is incorrect. The locale command displays the localization environment variables and their values, not the hardware time and date, so option D is incorrect.

Which command lists all the localizations installed on your Linux system? A. timecatectl B. localectl C. locale D. LANG E. LC_ALL

B. localectl The localectl command uses the list-locales option to display all the localizations installed on the Linux system, so option B is correct. The timedatectl command displays the local time and date, but it doesn't provide information on which localization files are installed, so option A is incorrect. The locale command displays the localization environment variable settings but doesn't list which localizations are installed, so option C is incorrect. The LANG and LC_ALL environment variables set the current localization but can't display which ones are installed on the system, so options D and E are incorrect.

Which command displays the current date, system time, hardware time, and time zone? A. date B. timedatectl C. time D. hwclock E. localectl

B. timedatectl The timedatectl command from the Systemd package displays the current date, the Linux system time, the hardware clock time, and the time zone, so option B is correct. The date command displays the current system time, date, and time zone but not the hardware time, so option A is incorrect. The time command displays the amount of time an application uses on the CPU, not the current date and time, so option C is incorrect. The hwclock command displays the current hardware time but not the system time, date, or time zone, so option D is incorrect. The localectl command displays the localization settings for the system but not the time, date, hardware time, or time zone, so option E is incorrect.

Which folder contains template files for each time zone that Linux supports? A. /etc/localtime B. /usr/share/zoneinfo C. /etc/timezone D. $HOME E. /usr/share/timezone

C. /etc/timezone The /usr/share/zoneinfo folder contains template files for each of the time zones supported in Linux, so option B is correct. The /etc/localtime and /etc/timezone files are the locations where you copy or link the appropriate time zone file to, but neither of them is the template folder, so options A and C are incorrect. The $HOME folder contains the user environment settings and user files but not the time zone template files, so option D is incorrect. The /usr/share/timezone folder is an incorrect folder name, so option E is incorrect.

Which character set uses 7 bits to store characters? A. UTF-8 B. UTF-16 C. ASCII D. Unicode E. UTF-32

C. ASCII The ASCII character set uses a 7-bit code to store English language characters, so option C is correct. The UTF-8 character set uses 1 byte (8 bits) to store characters, so option A is incorrect. The UTF-16 character set uses 2 bytes (16 bits) to store characters, so option B is incorrect. The Unicode character set uses 3 bytes (24 bits) to store characters, so option D is incorrect, and the UTF-32 character set uses 4 bytes (32 bits) to store characters, so option E is incorrect.

What two environment variables control all the localization settings? A. LC_MONETARY B. LC_NUMERIC C. LANG D. LC_CTYPE E. LC_ALL

C. LANG E. LC_ALL The LANG and LC_ALL environment variables control all the localization environment variable settings, so options C and E are correct. The LC_MONETARY, LC_NUMBERIC, and LC_CTYPE environment variables each control a single category of localization environment variables, but not all of the localization environment variables, so options A, B, and D are all incorrect.

Which character set has replaced ASCII as the default character set used in U.S. Linux installations? A. Unicode B. UTF-16 C. UTF-8 D. UTF-32 E. locale

C. UTF-8 The UTF-8 character set duplicates the ASCII character set, and it's the default used in most U.S. Linux installations, so option C is correct. The Unicode, UTF-16, and UTF-32 character sets use more than 1 byte to represent characters, so they are not often used for English language characters, making options A, B, and D incorrect. The locale command displays the localization environment variables and their values—it is not a character set code, so option E is incorrect.

What Systemd utility allows you to change the localization on your Linux system? A. timedatectl B. time C. date D. localectl E. locale

D. localectl The localectl command is part of the Systemd package and allows you to display and change the localization settings for your Linux system, so option D is correct. The timedatectl command is also part of the Systemd package, but it only applies to time and date changes and not the localization changes, so option A is incorrect. The time, date, and locale programs are legacy programs and not part of the Systemd package, so options B, C, and E are incorrect.

Which environment variable can programmers use to temporarily change the time zone setting for just their environment? A. LANG B. LC_MONETARY C. LC_NUMBERIC D. LC_ALL E. TZ

E. TZ The TZ environment variable overrides the default system time zone for session applications, so option E is correct. The LANG and LC_ALL environment variables set the entire system time zone, not just the programming environment, so options A and D are incorrect. The LC_MONETARY and LC_NUMERIC environment variables set the localization for money values and numeric values, but they don't change the time zone setting, so options B and C are incorrect.

Which character set uses a 3-byte code and can represent characters from most languages used in the world? A. ASCII B. LC_ALL C. UTF-8 D. UTF-16 E. Unicode

E. Unicode The Unicode character set uses 3 bytes to store characters, which provides enough space to represent all the characters in the known world languages, so option E is correct. The ASCII character set only supports English language characters, so option A is incorrect. The LC_ALL environment variable defines a character set to use for the Linux system but isn't a character set in itself, so option B is incorrect. Both the UTF-8 and UTF-16 character sets are a subset of the Unicode character set, so they can't represent all the language characters in use in the world, so options C and D are incorrect.

What Linux command displays all the localization environment variables and their values? A. date B. time C. hwclock D. LANG E. locale

E. locale The locale command displays all of the LC_ environment variables and their values, so option E is correct. The date command only displays the time and date, not the localization information, so option A is incorrect. The time command displays the amount of time an application uses on the system, not the localization information, so option B is incorrect. The hwclock command displays the hardware clock time, not the localization information, so option C is incorrect. The LANG environment variable allows you to set all the LC_ environment variables in one place, but it doesn't display all their settings, so option D is incorrect.


संबंधित स्टडी सेट्स

Kinesiology In Action Chapter 1-14 (post-test)

View Set

chapter 19 blood test and lab practical

View Set

APES-The Living World: Biodiversity

View Set

DWC Training: Abuse and Neglect: Reporting requirements

View Set

Sample ASE-Type Certification Test

View Set

Chapter 6 : Integumentary System

View Set