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

VeriTeknik I.T. Solutions Ltd., is a DataCenter company in Turkey.
VeriTeknik Telecom Ltd., is an Internet Service Provider in Turkey.

VeriTeknik I.T. Sloutions Ltd., VeriTeknik Telecom Ltd. 2004 - 2010
Eskişehir Yolu 17.km. Çamlık Park Sitesi 2365. sk. No:7 Bağlıca Ankara Turkey +90.312 234 20 00