Skip to content

Instantly share code, notes, and snippets.

@iliion
Created June 16, 2021 13:30
Show Gist options
  • Save iliion/c29b0bb0a4b2fd3160e612c64110c112 to your computer and use it in GitHub Desktop.
Save iliion/c29b0bb0a4b2fd3160e612c64110c112 to your computer and use it in GitHub Desktop.
Update date/time in ubuntu
#! /bin/bash
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
@sajeedreefy
Copy link

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment