102-500 practice question 21 of 30
What is true about the file /etc/localtime?
Full set: 233 questionsThe /etc/localtime file is used by the system to determine the local timezone. It is a binary data file, not plain text. The standard method for setting the timezone is to make /etc/localtime a symbolic link to the appropriate timezone file from the /usr/share/zoneinfo/ directory tree (e.g., /usr/share/zoneinfo/Europe/Berlin). Alternatively, it can be a direct copy of one of these files. This file contains rules for UTC offset and daylight saving time.
A. /etc/localtime is a binary file containing compiled timezone data, not a plain text file with a string.
B. The NTP service synchronizes the system clock's time but does not manage the timezone configuration file.
C. The /sys filesystem is a virtual filesystem for kernel and device information; it does not host timezone data files.
D. newtzconfig is not a standard command. Changes to /etc/localtime are effective for new processes without further commands.
- Linux man page localtime(5). It states, "The /etc/localtime file configures the system-wide timezone... It should be a symbolic link to a timezone data file in /usr/share/zoneinfo."
- Red Hat Enterprise Linux 7 System Administrator's Guide, "20.3. Configuring the Time Zone". It specifies that /etc/localtime is "a copy of, or a symbolic link to, a time zone data file from the /usr/share/zoneinfo/ directory."
- Arch Linux Wiki, "System time", section "Time zone". It documents the standard procedure: "create a symlink from /etc/localtime to a zoneinfo file in /usr/share/zoneinfo/."
Keep practicing
Take the free 102-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 102-500 practice questions
- Question 1What output is produced by the following command sequence? echo ‘1 2 3 4 5 6’ | while rea…
- Question 2Which command will set the local machine's timezone to UTC?
- Question 3Which of the following SQL statements will select the fields name and address from the co…
- Question 4Which of the following commands can remove a user from a group?
- Question 5Where are user specific crontabs stored?
- Question 6Which of the following crontab entries will execute myscript at 30 minutes past every hou…
