Skip to content

Commit

Permalink
Merge branch 'tldr-pages:main' into linux_top_100_thai
Browse files Browse the repository at this point in the history
  • Loading branch information
kengggg authored Jun 22, 2024
2 parents 2f2c79c + 84418d3 commit cfc9f25
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages.es/common/nc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# nc

> Redirige datos de entrada o salida a un flujo de red a través de esta versátil herramienta.
> Más información: <https://manned.org/man/nc.1>.
> Más información: <https://manned.org/nc.1>.
- Inicia un escuchador en un puerto TCP y le envía un archivo:

Expand Down
12 changes: 12 additions & 0 deletions pages.zh/common/sleep.md
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}}`
20 changes: 20 additions & 0 deletions pages.zh/common/uptime.md
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`
20 changes: 20 additions & 0 deletions pages.zh/linux/sleep.md
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}}`
8 changes: 8 additions & 0 deletions pages.zh/osx/uptime.md
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`
6 changes: 5 additions & 1 deletion pages/common/git-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@

`git tag -d {{tag_name}}`

- Get updated tags from upstream:
- Get updated tags from remote:

`git fetch --tags`

- Push a tag to remote:

`git push origin tag {{tag_name}}`

- List all tags whose ancestors include a given commit:

`git tag --contains {{commit}}`
17 changes: 17 additions & 0 deletions pages/linux/systool.md
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`

0 comments on commit cfc9f25

Please sign in to comment.