how to set linux date and time in commands

how to set linux date and time in commands

asked Nov 14, 2017 by harryxiyou (5,830 points)

1 Answer

For example, to change date to 14 Nov 2017 11:57:00, the command would be,

$ sudo date --set "14 Nov 2017 11:57:00"
Tue Nov 14 11:57:00 HKT 2017
answered Nov 14, 2017 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...