Created
June 16, 2021 13:30
-
-
Save iliion/c29b0bb0a4b2fd3160e612c64110c112 to your computer and use it in GitHub Desktop.
Update date/time in ubuntu
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
#! /bin/bash | |
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
thank you