AMP AMP
AMP
0
AMP

How to Change/Set Hardware Date and time in linux

I want to change hwclock date and time in linux, how can be done that

Hardware Add a comment
a sample image
lucas
asked Dec 10 2019

Answer

AMP
0
AMP

Answer:

To change hwclock date and time in linux, use the following command

Change date and time

[root@localhost ~]# hwclock --set --date "8/12/2019 23:10:45"

Only for time update

[root@localhost ~]# hwclock --set --date "09:10:45"
Add a comment
a sample image
linuxhelp
asked Dec 10 2019
Post your Answer