You Asked: How Do You Change the Time on a Linux Server?
Contents

How do you change the time in Linux?

You can set the date and time on your Linux system clock using the “set” switch along with the “date” command. Note that simply changing the system clock does not reset the hardware clock.

How do I fix the time on my Linux server?

Synchronize Time on Installed Linux Operating Systems

  1. On the Linux machine, log in as root.
  2. Run the ntpdate -u <ntpserver> command to update the machine clock. For example, ntpdate -u ntp-time. …
  3. Open the /etc/ntp. …
  4. Run the service ntpd start command to start the NTP service and implement you configuration changes.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest