Set date and time on a server
March 25th, 2007 by vickyI 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 »