logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Control rbash Shell - Restrict Bash Commands | Online Free DevTools by Hexmos

Control shell commands with rbash. Restrict user access to Bash environment and enhance system security. Free online tool, no registration required.

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: histexpand for history expansion. More information: https://www.gnu.org/software/bash/manual/bash.html#The-Restricted-Shell.

  • Start an interactive shell session:

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

See Also