tldr/pages/common/rbash.md
2017-11-17 16:37:36 +01:00

579 B
Raw Blame History

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