Skip to content

Instantly share code, notes, and snippets.

@oguzoldev
Created February 6, 2017 18:22
Show Gist options
  • Save oguzoldev/1b8cad40aba247ce391e1581fab0e6e1 to your computer and use it in GitHub Desktop.
Save oguzoldev/1b8cad40aba247ce391e1581fab0e6e1 to your computer and use it in GitHub Desktop.

Linux update date and time on 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