Set Date/Time Automatically from Google on Ubuntu 18

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 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

About the author

Vannkorn I am a WordPress lover. I make my living using WordPress. Buy a coffee
Show your support

Related Posts


Leave a Reply

Your email address will not be published. Required fields are marked *