Link Search Menu Expand Document


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 histexpand for history expansion. More information:

  • Start an interactive shell session:


  • Execute a command and then exit:

rbash -c "{{command}}"

  • Execute a script:

rbash {{path/to/}}

  • Execute a script, printing each command before executing it:

rbash -x {{path/to/}}

  • Execute commands from a script, stopping at the first error:

rbash -e {{path/to/}}

  • Read and execute commands from stdin:

rbash -s