Skip to content

Instantly share code, notes, and snippets.

@mikeesto
Last active June 14, 2021 03:46
Show Gist options
  • Save mikeesto/0ea6c800c1e83ed1c27d7207e4e9c2cf to your computer and use it in GitHub Desktop.
Save mikeesto/0ea6c800c1e83ed1c27d7207e4e9c2cf to your computer and use it in GitHub Desktop.
How to update date/time on Raspberry Pi
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