问题
Hello I have a bash script who update the time of my mac but since the update of Majove the command isn't found:
ntpdate -u time.apple.com
return :
ntpdate: command not found
Where I going wrong ?
Thanks to your reply
回答1:
It's a duplicate. Please check this stackoverflow question.
TL;DR use sudo sntp -sS time.apple.com
instead.
回答2:
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.
来源:https://stackoverflow.com/questions/52548093/ntpdate-command-not-found-macos-mojave