Command to Sync server time without NTP

Best way to sync the server date/time without using NTP protocol. 

You can use the following command to sync the date/time.

 

sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

 

 

  • time, sync, ntp, without, date, basic, command
  • 0 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution