Results 1 to 4 of 4
Hi,
I want to modify the system date, so am using the following command:
[root@rad-dev-01 /]# date
Wed Feb 23 10:20:07 UTC 2011
[root@rad-dev-01 /]# sudo date 022407002011
Thu Feb ...
- 02-23-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 1
Please Help: Not able to set date On CentOS release 5.2
Hi,
I want to modify the system date, so am using the following command:
[root@rad-dev-01 /]# date
Wed Feb 23 10:20:07 UTC 2011
[root@rad-dev-01 /]# sudo date 022407002011
Thu Feb 24 07:00:00 UTC 2011
[root@rad-dev-01 /]# date
Wed Feb 23 10:23:23 UTC 2011
Once i set the date it again get reset..
Please help me
Note:
Am using ssh -i with permission file to connect the system(CentOS release 5.2 ).
Thanks In Advance,
-Max
- 02-23-2011 #2
Try as root:
date -s "23 FEB 2011 09:00:00"
- 02-24-2011 #3Just Joined!
- Join Date
- Sep 2010
- Location
- Dhaka, Bangladesh
- Posts
- 29
The problem may arise because the hardware clock had not been synchronized with the system clock. To do this, you could use the following as root-
The time should not automatically change again[root@rad-dev-01 /]# date 022407002011
[root@rad-dev-01 /]# hwclock --systohc
[root@rad-dev-01 /]# hwclock
For other information on hwclock, you could try
hwclock --help
man hwclock
- 02-24-2011 #4Just Joined!
- Join Date
- Feb 2011
- Posts
- 3
#date -s "2 OCT 2006 18:00:00"


Reply With Quote