syncing date and time in command line

having the wrong date and time in the system can be disastrous as many applications will be using the system date and time. It is therefore very important to have the right date and time.

In linux,

yum install ntp
chkconfig ntp on
service ntpd start

You can add the ntpdate command to cron to automate the syncing process. Another easy way is to do it in the GUI, if you have it.

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.