How to synchronize date and time in linux console ?

How to synchronize date and time in linux console ?


# yum install ntp
# chkconfig ntpd on
# ntpdate pool.ntp.org
# /etc/init.d/ntpd start


How to synchronize date and time for hardware clock in Linux ?

# hwclock --systohc

I’ve sync the time for my CentOS 5.6 using this way.

To check your current date,

# date
Wed Apr 20 18:58:28 MYT 2011


Tags: , , , , , , ,

Translate

Buy me a Caffè Latte

Thank you for the Caffè Latte

2013/02/15 saw art
2013/01/25 Parul Patel
2012/11/20 Barbara Nicholas $10
2012/10/08 Amy Stockman $5
2012/07/15 siewho chang $ 50
2012/06/08 Susan Hampton $10
2012/05/11 Chris Grima $10