centos7

centos7如何查看时区

小新
5877
2021-05-08 13:40:25
栏目: 智能运维

centos7中查看时区的方法:1、打开centos7终端;2、在centos7终端命令行中输入“timedatectl | grep "Time zone"”命令查看当前系统时区即可。

centos7如何查看时区

具体操作步骤:

1、在centos7系统桌面中使用快捷键【Ctrl+Alt+T】打开centos7终端命令行模式。

2、在centos7终端命令行中输入以下命令查看当前系统时区即可。

timedatectl | grep "Time zone" #查看当前系统时区

相关操作命令:

date -R #查看时区

timedatectl list-timezones #列出所有时区

timedatectl set-timezone Asia/Shanghai #设置系统时区为上海

0
看了该问题的人还看了