Web Hosting Talk







View Full Version : very simple questoin


allending
05-03-2001, 08:37 PM
This is probably a very simple questoni for any experienced linux users out there.

My system clock is off by 1 hour behind (relative to the set time zone in the server, so if i change the time zone, if becomes 1 hour behind relative to the new time zone).

How would I fix it to the real time thorugh a command line argument?

Thanks~

Annette
05-03-2001, 09:13 PM
You can set the system time through the netdate command. If you run it as a nonprivileged user first, it will tell you waht time it thinks it is (just to verify things).

netdate {options} {protocol} hostname

udp is the default protocol; tcp is also available

options: -l chooses the most reliable host from the list of hosts in hostname. -v will show you the groups into which the hosts are sorted.