13 March 2013

Setting time with NTP in LINUX


NTP (Network Time Protocol) could be used to set time synced with ntp clocks, to do this use the shell command below:

Setting time with NTP:



yum install ntp -y
\cp -f /usr/share/zoneinfo/Europe/Istanbul /etc/localtime
ntpdate -v -b in.pool.ntp.org

And set the hardware clock with:

hwclock -w

No comments: