0
点赞
收藏
分享

微信扫一扫

基础命令-Centos 6 和 7 如何查看时区

爱薇Ivy趣闻 2024-06-01 阅读 9

Centos 6查看时区: [root@localhost ~]# cat /etc/sysconfig/clock # The time zone of the system is defined by the contents of /etc/localtime. # This file is only for evaluation by system-config-date, do not rely on its # contents elsewhere. ZONE="Asia/Shanghai"

Centos 7查看时区: [root@localhost ~]# timedatectl | grep "Time zone" Time zone: Asia/Shanghai (CST, +0800)

举报

相关推荐

0 条评论