Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-23 00:21:40 +00:00
parent 716a67f83d
commit 4e6886aa1f
57 changed files with 368 additions and 131 deletions

View File

@@ -5,31 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# rbash
> Restricted Bash shell, equivalent to `bash --restricted`.
> Does not permit changing the working directory, redirecting command output, or modifying environment variables, among other things.
> See also: `!` and `^` for history expansion.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#The-Restricted-Shell>.
> This command is an alias of `bash --restricted`.
- Start an interactive shell session:
- View documentation for the original command:
`rbash`
- Execute a command and then exit:
`rbash -c "{{command}}"`
- Execute a script:
`rbash {{path/to/script.sh}}`
- Execute a script, printing each command before executing it:
`rbash -x {{path/to/script.sh}}`
- Execute commands from a script, stopping at the first error:
`rbash -e {{path/to/script.sh}}`
- Read and execute commands from `stdin`:
`rbash -s`
`tldr bash`