mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-21 00:38:17 +03:00
599 B
599 B
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