查询
test@test:~$ date
Tue Feb 8 13:44:07 CST 2022
修改
日期
test@test:~$ sudo date -s 2022/2/8
[sudo] password for test:
Tue Feb 8 00:00:00 CST 2022
时间
test@test:~$ sudo date -s 13:42:30
[sudo] password for test:
Tue Feb 8 13:42:30 CST 2022
修改完成后更新CMOS
test@test:~$ sudo hwclock --systohc