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 Author:

I am a WordPress lover. I make my living using WordPress.

Leave A Comment

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