设置时区
$ timedatectl
Local time: Fri 2019-05-10 09:04:08 UTC
Universal time: Fri 2019-05-10 09:04:08 UTC
RTC time: Fri 2019-05-10 09:04:09
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
$ timedatectl list-timezones
$ timedatectl set-timezone Asia/Shanghai
==== AUTHENTICATING FOR org.freedesktop.timedate1.set-timezone ===
Authentication is required to set the system timezone.
Authenticating as: Learning Analytics Website (laweb)
Password:
==== AUTHENTICATION COMPLETE ===
本文详细介绍了如何在Linux系统中使用timedatectl命令来查看和设置系统时区,通过具体的命令实例展示了从查看当前时区到切换为上海时区的全过程。
2617

被折叠的 条评论
为什么被折叠?



