Skip to content

Instantly share code, notes, and snippets.

@rjksn
Created November 1, 2018 15:30
Show Gist options
  • Save rjksn/75e645c5aa2c775778cd58415acef94a to your computer and use it in GitHub Desktop.
Save rjksn/75e645c5aa2c775778cd58415acef94a to your computer and use it in GitHub Desktop.
Update Ubuntu System Time
# See https://askubuntu.com/questions/81293/what-is-the-command-to-update-time-and-date-from-internet
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment