- 查看当前系统时间
[root@localhost ~] date
- 修改系统时间
修改时间为x年x月x日:
[root@localhost ~] date -s 2019/03/30
修改时间为x时x分:
[root@localhost ~] date -s 12:32:00
[root@localhost ~] date
修改时间为x年x月x日:
[root@localhost ~] date -s 2019/03/30
修改时间为x时x分:
[root@localhost ~] date -s 12:32:00