how to set linux date and time in commands

how to set linux date and time in commands

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 by harryxiyou.

Weiwei Jia

Weiwei Jia is a Ph.D. student in the Department of Computer Science at New Jersey Institute of Technology since 2016. His research interests are include storage systems, operating systems and computer systems.

Leave a Reply

Your email address will not be published. Required fields are marked *