LPIC-1 Exam 102 v5 (Linux Administrator) — Question 72
What is true about the file /etc/localtime?
Answer options
- A. It is a plain text file containing a string such as Europe/Berlin
- B. It is created and maintained by the NTP service based on the location of the system's IP address.
- C. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
- D. After changing this file, newtzconfig has to be run to make the changes effective.
- E. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.
Correct answer: E
Explanation
The correct answer is E because /etc/localtime is typically a symlink to a specific timezone file in /usr/share/zoneinfo, which provides the necessary timezone data. The other options are incorrect as /etc/localtime is not a plain text file, is not maintained by NTP, does not link to /sys/device/clock/ltime, and does not require newtzconfig to be executed for changes to take effect.