Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ yum list ntp
$ sudo yum install ntp
$ sudo yum reinstall ntp
$ sudo find / -name ntpdate
$ sudo /usr/sbin/ntpdate --help
$ sudo /usr/sbin/ntpdate 10.1.3.22
$ sudo /etc/init.d/ntpd start
$ ps -ef | grep ntp

And if you want a shell script:

Code Block

sudo yum erase ntp
sudo yum install ntp
sudo /usr/sbin/ntpdate 10.1.3.22
sudo /etc/init.d/ntpd start