centos7如何查看时区

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

具体操作步骤:

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

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

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

相关操作命令:

date -R #查看时区

timedatectl list-timezones #列出所有时区

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

赞(0)
未经允许不得转载:主机测评网 » centos7如何查看时区
分享到: 更多 (0)