Skip to content

Instantly share code, notes, and snippets.

@msoranno
Created June 15, 2017 16:42
Show Gist options
  • Save msoranno/8d125aa270be8890339390f4f58d0c6a to your computer and use it in GitHub Desktop.
Save msoranno/8d125aa270be8890339390f4f58d0c6a to your computer and use it in GitHub Desktop.
set time
#change time
service ntpd stop
date +%T -s "23:00"
#back to time
service ntp stop
ntpd -gq (force)
service ntp start
#status
ntpq -pn
ntpstat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment