Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Try as root:
    date -s "23 FEB 2011 09:00:00"
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just 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-


    [root@rad-dev-01 /]# date 022407002011

    [root@rad-dev-01 /]# hwclock --systohc

    [root@rad-dev-01 /]# hwclock
    The time should not automatically change again


    For other information on hwclock, you could try

    hwclock --help
    man hwclock

  4. #4
    Just Joined!
    Join Date
    Feb 2011
    Posts
    3
    #date -s "2 OCT 2006 18:00:00"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...