Linux修改系统时间

  1. 执行tzselect
  • 选亚洲

  • 选中国

  • 选北京

  • 选YES

  1. 复制文件:cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  2. 验证:date or date -r CST为中国时区
  3. 同步到硬件:sudo hwclock --systohc