How to view and set linux operating system time

1. Check the time and date
Command: "date"
2. Set the time and date
For example: command to set system date to November 3, 2009
命令 : "date -s 11/03/2009"
The command to set the system time to 5:55:55 PM
命令 : "date -s 17:55:55"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325068816&siteId=291194637