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是正確答案。