There was an error while loading. Please reload this page.
1 parent f1c3ee4 commit f4e2578Copy full SHA for f4e2578
command/timedatectl.md
@@ -37,6 +37,7 @@ Query or change system time and date settings.
37
38
Commands:
39
status 显示当前的时间设置。
40
+ show 显示systemd-timedated的属性。
41
set-time TIME 设置系统时间。
42
set-timezone ZONE 设置系统时区。
43
list-timezones 显示已知时区。
@@ -62,11 +63,22 @@ NTP synchronized: no
62
63
DST active: n/a
64
```
65
66
+显示systemd-timedated的属性
67
+
68
+```
69
+$ timedatectl show
70
+Timezone=Asia/Shanghai
71
+LocalRTC=no
72
+CanNTP=yes
73
+NTP=yes
74
+NTPSynchronized=yes
75
+TimeUSec=Fri 2022-04-08 17:04:02 CST
76
+RTCTimeUSec=Fri 2022-04-08 17:04:02 CST
77
78
79
显示系统所有可用的时区
80
81
```shell
-$ timedatectl show
-Unknown operation show
82
$ timedatectl list-timezones
83
Africa/Abidjan
84
Africa/Accra
0 commit comments