Skip to content

Instantly share code, notes, and snippets.

@sloanlance
Created November 10, 2016 20:50
Show Gist options
  • Save sloanlance/1a15c2789959006634a86b905ae76ba0 to your computer and use it in GitHub Desktop.
Save sloanlance/1a15c2789959006634a86b905ae76ba0 to your computer and use it in GitHub Desktop.
Linux: Set the system time from an NTP server

If ntpdate is installed:

sudo ntpdate pool.ntp.org

To install ntpdate:

sudo apt-get install ntpdate # for Ubuntu-like
sudo yum install ntp # for Fedora-like
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment