How do I change the hardware clock on linux redhat?



  • The hardware clock is the time & date held in the BIOS. The system time is the time set by the operating system.

    # hwclock --set --date="9/20/09 15:45:05"
    

    To show the current hardware date & time:

    # hwclock
    Wed 14 Oct 2009 14:23:32 BST  -0.000400 seconds
    

    To set the system time to the hardware clock time:

    # hwclock --hctosys
    # hwclock
    Wed 14 Oct 2009 14:26:17 BST  -0.000378 seconds
    # date
    Wed Oct 14 14:26:17 BST 2009
    

Log in to reply
 

© Lightnetics 2024