Skip to content

Commit f4e2578

Browse files
doc: Update timedatectl.md (#666)
1 parent f1c3ee4 commit f4e2578

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

command/timedatectl.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Query or change system time and date settings.
3737

3838
Commands:
3939
status 显示当前的时间设置。
40+
show 显示systemd-timedated的属性。
4041
set-time TIME 设置系统时间。
4142
set-timezone ZONE 设置系统时区。
4243
list-timezones 显示已知时区。
@@ -62,11 +63,22 @@ NTP synchronized: no
6263
DST active: n/a
6364
```
6465

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+
6579
显示系统所有可用的时区
6680

6781
```shell
68-
$ timedatectl show
69-
Unknown operation show
7082
$ timedatectl list-timezones
7183
Africa/Abidjan
7284
Africa/Accra

0 commit comments

Comments
 (0)