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 geolocation of the system's IP address.
C. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
D. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.
题解
Linux 的时区设置档都放在「/usr/share/zoneinfo/」目录中,如果要设置本地的时区,可以从「/usr/share/zoneinfo/」目录中选出要设置的时区设置档,将其拷贝一份存成「/etc/localtime」文件。或是创建「/etc/localtime」链接档,链接到「/usr/share/zoneinfo/」目录中的时区设置档。选项 D 是正确答案。
