Articles: Changing the date in Linux
Posted by: david on 11/10/2002 - 08:48 PM
To change the date in Linux, use the date command, which has the following syntax:
date MMDDHHmmYYYY
e.g.
[root@scooter logs]# date 111017482002
Sun Nov 10 17:48:00 PST 2002 Then you should run "hwclock", which synchronizes the hardware clock with the OS clock- just type the following: hwclock --set --date="
Sun Nov 10 17:48:00 PST 2002 Then you should run "hwclock", which synchronizes the hardware clock with the OS clock- just type the following: hwclock --set --date="
date '+%m/%d/%y %H:%M:%S'"