mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 07:47:42 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/rbash
29
tldr/rbash
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user