I’ve once had a problem on one of my Ubuntu 18 servers on timing not syncing from the internet.
Use the following command:
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
&1 | grep Date: | cut -d' ' -f5-8)Z"">
Skip to contentI’ve once had a problem on one of my Ubuntu 18 servers on timing not syncing from the internet.
Use the following command:
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"