Created
August 15, 2024 12:23
-
-
Save d3ividdy/e9a41b07ff8da93340c1321c2546bf19 to your computer and use it in GitHub Desktop.
sync date time from 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
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