Debian changes the time zone and system time

Hello World 2021-11-09 PM 77℃ 2条

tzselect

Run the tzselect command to enter the interactive mode and enter the corresponding number as prompted

tzselect
TZ='Asia/Shanghai'; export TZ

timedatectl

timedatectl list-timezones  | grep "Asia/S"
timedatectl set-timezone "Asia/Shanghai"

View the current hardware time

hwclock -r
标签: debian

非特殊说明,本博所有文章均为博主原创。

评论啦~



已有 2 条评论


  1. 1
    1

    666

    回复 2021-11-10 00:16
  2. 1
    1

    666

    回复 2021-11-10 00:16