partner

Configuring Timezone used by Network Time Protocol (NTP) in Fedora Linux on the Command Line

The Fedora Linux documentation does a nice job of showing you how to configure your date and time on the command line.

It also has adequate instructions and examples on how to synchronize your system clock with a remote server over the Network Time Protocol (NTP).

When it comes to configuring the timezone of your system clock, the Fedora Linux documentation only shows how to do it using the graphical date and time configuration tool.

Setting your timezone on the command line doesn’t appear to be covered in the docs. After a bit of research, I came up with a simple way to set it on the command line by copying your appropriate zoneinfo file over your existing localtime file.

1
cp /usr/share/zoneinfo/America/New_York /etc/localtime

Thank you Guillermo Garron

profile