Search

Blogroll

Meta:

Set date and time on a server

March 25th, 2007 by vicky

I will show you here how to set correct date and time on your server. All steps need to be done as root (which I assume you know).

To set correct time issue this command

/usr/bin/rdate -s time.nist.gov

It will connect to time server and synchs your time and date. After that command execute

/sbin/hwclock --systohc

which sets ‘permanent’ clock from the system time so that the time will be correct next time you reboot.

You can do this via a NTP daemon but it is too complicated for such an easy task as setting the date and time.

Posted in General linux admin | No Comments »

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.