A Linux administrator was informed that the server time zone is incorrect. Which of the following commands should the administrator use to correct the time zone?
In modern Linux distributions using systemd, the correct way to change the system time zone is by using the timedatectl command:
cpp
CopyEdit
timedatectl set-timezone
For example, to set the time zone to America/New_York, the command would be:
cpp
CopyEdit
timedatectl set-timezone America/New_York
Why the other options are incorrect?
B. systemd-timezone set Asia/Tokyo → Incorrect, as there is no systemd-timezone command in Linux.
C. systemctl configure-timezone Africa/Nairobi → Incorrect, systemctl does not have a configure-timezone option.
D. tzconfig configure Europe/London → Incorrect, tzconfig was used in older Debian-based systems, but it has been deprecated in favor of timedatectl.
References:
CompTIA Linux+ Official Documentation
timedatectl Documentation – Red Hat
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit