|
Setting Time and Date on Linux |
|
Written by pnyet
|
|
Hm..., today i has finished configure proxy server (squid), to filter some websites on internet. And in acl ill allow user to connect some website at out off office hours, here i need to match time on server and office and computer, and now how to setting date and time on linux? Read the following suggestion...
need to adjust server clock setting. Here is the command. # date -s ‘MM/DD/YYYY HH:MM:SS’ <– change with actual date and time eg: ‘12/24/2007 16:25:00′ # clock -w <– to set the hardware clock (CMOS) to match the kernel time # echo “clock -s” /sbin/hwclock <– to make sure that the time is always correct on reboot, link the kernel time to hardware clock # chmod +x /sbin/hwclock <– make the script executable Or alternate... # date 011910352009 Mon Jan 19 10:35:00 CDT 2009 # hwclock --utc --systohc
So simple an helpfully
Completed...
|