Last active
June 14, 2021 03:46
-
-
Save mikeesto/0ea6c800c1e83ed1c27d7207e4e9c2cf to your computer and use it in GitHub Desktop.
How to update date/time on Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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