zl程序教程

您现在的位置是:首页 >  系统

当前栏目

在 Linux 中查看时区

Linux 查看
2023-09-14 09:00:01 时间

1.date

date +"%Z %z"

或者

date -R

2.timedatectl

timedatectl|grep "Timezone"

可以使用 timedatectl 来设置 Linux 时区

3.显示文件 /etc/timezone 的内容

 cat /etc/timezone