Linux penguin

How to synchronize date and time in linux console ?

How to synchronize date and time in linux console ?

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

[adrotate banner=”1″]
How to synchronize date and time for hardware clock in Linux ?
[adrotate banner=”2″]
# 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:

3 thoughts on “How to synchronize date and time in linux console ?”

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.