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.

Leave a Reply

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