首页 > 编程知识 正文

linux查看时区的命令,linux显示时间

时间:2023-05-05 10:39:35 阅读:18425 作者:1002

文章连接: https://blog.csdn.net/sxz LC/article/details/115792270

========

扩展:

使用Linux的tzselect功能,了解每个大陆都有哪些国家

3359 blog.csdn.net/sxz LC/article/details/115792692

========

1 .显示当前时区

2.执行tzselect命令,

3.选择你的国家(地区)所在的洲(亚洲,输入4)

4 .选择你的国家中国9

5 .选择区域北京1

确认是1

youcanmakethischangepermanentforyourselfbyappendingtheline

TZ=' Asia/Shanghai'; 导出tz

othe file '.profile ' in your home directory; then log out and log in again。

Here is that TZ value again,thistimeonstandardoutputsothatyou

can use the/usr/lhdxxm/tzselectcommandinshellscripts 3360

7 .时区timedatectlset-time zone ' Asia/Shanghai '在上述获得的【Asia/Shanghai】中进行修改

===

必须以管理员权限运行

8.再次查看时间,已经是当前时区的时间了

===

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。