set hardware date/time in linux

by Ramya 2009-12-24 13:57:09

set system hardware date/time in linux:

Display current date/time in linux
Use date command to display current timing in linux as,
[root@localhost ~]# hwclock
Thu 24 Dec 2009 01:40:29 AM IST -0.677351 seconds


To change or set system date/time in linux use date command as,
hwclock --set --date='08/4/09 21:08:40' --localtime


for eg,
[root@localhost ~]# hwclock --set --date='12/24/09 01:40:25' --localtime

Display the time using,
[root@localhost Desktop]# hwclock
Thu 24 Dec 2009 01:40:29 AM IST -0.677351 seconds

Tagged in:

982
like
0
dislike
0
mail
flag

You must LOGIN to add comments