Created
October 29, 2017 16:24
-
-
Save sleepdefic1t/eff7c69c0485294f8d6d60eddb3f41eb to your computer and use it in GitHub Desktop.
One-line command to update Raspberry Pi system-time. Obviously, you must be connected to the web.
This file contains hidden or 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
// one-line time-update | |
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