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"
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"
Powered by WHMCompleteSolution