switch_root, tailf, uuidparse, waitpid: add pages (#12108)

* switch_root, tailf, uuidparse, waitpid: add pages

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
pull/23/head
Juri Dispan 2024-01-23 08:26:57 +01:00 committed by GitHub
parent 77483d96d9
commit 14bb4a9221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# switch_root
> Use a different filesystem as the root of the mount tree.
> NOTE: switch_root will fail to function if the new root is not the root of a mount. Use bind-mounting as a workaround.
> See also: `chroot`, `mount`.
> More information: <https://manned.org/switch_root.8>.
- Move `/proc`, `/dev`, `/sys` and `/run` to the specified filesystem, use this filesystem as the new root and start the specified init process:
`switch_root {{new_root}} {{/sbin/init}}`
- Display help:
`switch_root -h`

8
pages/linux/tailf.md Normal file
View File

@ -0,0 +1,8 @@
# tailf
> This command is superseded by `tail -f`.
> More information: <https://manned.org/tailf.1>.
- View documentation for the recommended replacement:
`tldr tail`

33
pages/linux/uuidparse.md Normal file
View File

@ -0,0 +1,33 @@
# uuidparse
> Parse universally unique identifiers.
> See also: `uuidgen`.
> More information: <https://manned.org/uuidparse.1>.
- Parse the specified UUIDs, use a tabular output format:
`uuidparse {{uuid1 uuid2 ...}}`
- Parse UUIDs from `stdin`:
`{{command}} | uuidparse`
- Use the JSON output format:
`uuidparse --json {{uuid1 uuid2 ...}}`
- Do not print a header line:
`uuidparse --noheadings {{uuid1 uuid2 ...}}`
- Use the raw output format:
`uuidparse --raw {{uuid1 uuid2 ...}}`
- Specify which of the four output columns to print:
`uuidparse --output {{UUID,VARIANT,TYPE,TIME}}`
- Display help:
`uuidparse -h`

25
pages/linux/waitpid.md Normal file
View File

@ -0,0 +1,25 @@
# waitpid
> Wait for the termination of arbitrary processes.
> See also: `wait`.
> More information: <https://manned.org/waitpid.1>.
- Sleep until all processes whose PIDs have been specified have exited:
`waitpid {{pid1 pid2 ...}}`
- Sleep for at most `n` seconds:
`waitpid --timeout {{n}} {{pid1 pid2 ...}}`
- Do not error if specified PIDs have already exited:
`waitpid --exited {{pid1 pid2 ...}}`
- Sleep until `n` of the specified processes have exited:
`waitpid --count {{n}} {{pid1 pid2 ...}}`
- Display help:
`waitpid -h`