forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tldr-pages:main' into linux_top_100_thai
- Loading branch information
Showing
7 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# sleep | ||
|
||
> 延迟指定的一段时间。 | ||
> 更多信息:<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sleep.html>. | ||
- 按秒数延迟: | ||
|
||
`sleep {{seconds}}` | ||
|
||
- 在20秒延迟后执行指定命令: | ||
|
||
`sleep 20 && {{command}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# uptime | ||
|
||
> 告知当前系统运行多长时间和其他信息。 | ||
> 更多信息:<https://www.gnu.org/software/coreutils/uptime>. | ||
- 打印当前时间,运行时间,登录用户数量和其他信息: | ||
|
||
`uptime` | ||
|
||
- 仅显示系统已启动的时间长度: | ||
|
||
`uptime --pretty` | ||
|
||
- 打印系统启动的日期和时间: | ||
|
||
`uptime --since` | ||
|
||
- 显示版本信息: | ||
|
||
`uptime --version` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# sleep | ||
|
||
> 延迟指定的一段时间。 | ||
> 更多信息:<https://www.gnu.org/software/coreutils/sleep>. | ||
- 按秒数延迟: | ||
|
||
`sleep {{seconds}}` | ||
|
||
- 延迟 [m]分钟(其他元素 [d]天,[h]小时,[s]秒,[inf]无穷 也可以使用): | ||
|
||
`sleep {{minutes}}m` | ||
|
||
- 延迟 1 [d]天 3 [h]小时: | ||
|
||
`sleep 1d 3h` | ||
|
||
- 在 20 [m]分钟 延迟后执行指定命令: | ||
|
||
`sleep 20m && {{command}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# uptime | ||
|
||
> 告知当前系统运行多长时间和其他信息。 | ||
> 更多信息:<https://keith.github.io/xcode-man-pages/uptime.1.html>. | ||
- 打印当前时间,运行时间,登录用户数量和其他信息: | ||
|
||
`uptime` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# systool | ||
|
||
> View system device information by bus, and classes. | ||
> This command is part of the `sysfs` package. | ||
> More information: <https://github.com/linux-ras/sysfsutils>. | ||
- List all attributes of devices of a bus (eg. `pci`, `usb`). View all buses using `ls /sys/bus`: | ||
|
||
`systool -b {{bus}} -v` | ||
|
||
- List all attributes of a class of devices (eg. `drm`, `block`). View all classes using `ls /sys/class`: | ||
|
||
`systool -c {{class}} -v` | ||
|
||
- Show only device drivers of a bus (eg. `pci`, `usb`): | ||
|
||
`systool -b {{bus}} -D` |