What is true about the file /etc/localtime?

What is true about the file /etc/localtime?
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.

Answer: E

Explanation:

The /etc/localtime file is used to configure the system-wide timezone of the local system that is used by applications for presentation to the user. It should be either a symlink to or a copy of a timezone information file that contains the binary data for the configured timezone. The timezone information files are located under /usr/share/zoneinfo/ and are named after the geographic regions and cities, such as Europe/Berlin or Etc/UTC. The timezone identifier is extracted from the symlink target name of /etc/localtime, so it is recommended to use a symlink rather than a copy. The timezone can be changed by using the timedatectl command or by creating a new symlink to the desired timezone file123.

Reference: How to Set or Change the Time Zone in Linux | Linuxize

localtime(5) – Linux manual page – man7.org

localtime(5) ― Arch manual pages

Latest 102-500 Dumps Valid Version with 194 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments