ntpdate command not found in MacOS Mojave

El-Burritos picture El-Burritos · Sep 28, 2018 · Viewed 25.2k times · Source

I have a Bash script who update the time of my mac but since the update of Mojave the command isn't found:

ntpdate -u time.apple.com

return :

ntpdate: command not found

Where am I going wrong?

Answer

Mike picture Mike · Sep 28, 2018

It's a duplicate. Please check this stackoverflow question.

TL;DR use sudo sntp -sS time.apple.com instead.