Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ntpdate command not found in MacOS Mojave

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?

like image 210
El-Burritos Avatar asked Sep 28 '18 04:09

El-Burritos


2 Answers

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

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

like image 171
Mike Avatar answered Nov 01 '22 03:11

Mike


For anyone trying to do this because their vm cannot connect to the update server while trying to install macos on a virtual machine, I switched my network adapter from NAT to bridged and the issue was resolved.

like image 29
Josh Woodcock Avatar answered Nov 01 '22 03:11

Josh Woodcock