wzhanjun / blog

my person notes
0 stars 0 forks source link

linux 时区同步 #61

Open wzhanjun opened 1 year ago

wzhanjun commented 1 year ago
  1. 查看时间: date
  2. 查看硬件时间: hwclock --show
  3. 修改硬件时间(如果硬件时间和系统时间不同): hwclock --set --date="2022-11-24 10:10:10" https://time.is/zh/UTC
  4. 设置系统时间和硬件时间同步: hwclock --hctosys
  5. 保存时钟: clock -w