Categories
Tips & Tricks

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

By Vannkorn

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

Leave a Reply

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