时间相关的命令
调整错误的时间
shell
sudo date +%Y%m%d -s "20240712"
sudo date +%T -s "05:36:00"
sudo apt update
sudo apt install ntpdate -y && sudo ntpdate time.nist.gov
查看和调整时区
shell
timedatectl status
timedatectl set-timezone "Asia/Shanghai"
tzselect
dpkg-reconfigure -f noninteractive tzdata
将时间修改为东8区
shell
sudo timedatectl set-timezone Asia/Singapore && date