LinuxCommandLibrary

rbash

restricted bash, see <B>bash(1)</B>

TLDR

Start an interactive shell session

$ rbash
copy


Execute a command and then exit
$ rbash -c "[command]"
copy


Execute a script
$ rbash [path/to/script.sh]
copy


Execute a script, printing each command before executing it
$ rbash -x [path/to/script.sh]
copy


Execute commands from a script, stopping at the first error
$ rbash -e [path/to/script.sh]
copy


Read and execute commands from stdin
$ rbash -s
copy

Help

GNU bash, version 5.2.15(1)-release-(x86_64-pc-linux-gnu) 
Usage: rbash [GNU long option] [option] ... 
rbash [GNU long option] [option] script-file ... 
GNU long options:
--debug 
--debugger 
--dump-po-strings 
--dump-strings 
--help 
--init-file 
--login 
--noediting 
--noprofile 
--norc 
--posix 
--pretty-print 
--rcfile 
--restricted 
--verbose 
--version 
Shell options:
-ilrsD or -c command or -O shopt_option (invocation only) 
-abefhkmnptuvxBCEHPT or -o option 
Type `rbash -c "help set"' for more information about shell options. 
Type `rbash -c help' for more information about shell builtin commands. 
Use the `bashbug' command to report bugs. 

bash home page:  
General help using GNU software:  

Copied to clipboard