Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/common/bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@

- Start a [r]estricted shell session:

`bash -r`
`bash {{[-r|--restricted]}}`
29 changes: 3 additions & 26 deletions pages/common/rbash.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,7 @@
# 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`
Loading