tldr/pages/common/rbash.md
2017-11-16 22:46:57 +01:00

28 lines
599 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rbash
> Restricted Bash shell.
> Restrictions implemented in rbash.
> The cd command is not allowed.
> PATH and ENV (setting/unsetting).
> Importing function.
> Specifying file name containing argument /.
> Specifying file name containing argument -.
> Redirecting output using >, >>, >|, <>, >&, &>.
> Turning off restriction using set +r or set +o.
- Start rbash:
`rbash`
- Execute a command:
`rbash -c "{{command}}"`
- Run commands from a file:
`rbash {{file.sh}}`
- Print the version information of rbash:
`rbash --version`