Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-09 00:21:17 +00:00
parent 4bbaaf8836
commit e9c1654811
29 changed files with 76 additions and 28 deletions

View File

@@ -8,10 +8,14 @@ source: https://github.com/tldr-pages/tldr.git
> Run command or interactive shell with special root directory.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chroot-invocation.html>.
- Run `$SHELL` in the new root directory:
`sudo chroot {{path/to/new_root}}`
- Run command as new root directory:
`sudo chroot {{path/to/new_root}} {{command}}`
- Use a specific user and group:
`sudo chroot --userspec {{username_or_id:group_name_or_id}}`
`sudo chroot --userspec {{username_or_id}}:{{group_name_or_id}} {{path/to/new_root}}`