Close Menu
    What's Hot

    YouTube Unblocked Proxy: Overview, Benefits, and Real-World Use Cases

    April 7, 2026

    Linux Kernel Release Frequency Statistics 2026

    April 7, 2026

    How To Use The SSH Login Command

    April 7, 2026
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • Man Pages
    • Arch Linux
    • Statistics
    • How to
      • Q&A
    • OS
      • Windows
    • Blog
      • Featured
    • MORE
      • Easter Eggs
      • IP Address
    • Write For Us
    • Contact Us
    Command Linux
    Home - man page - RBASH

    RBASH

    WillieBy WillieFebruary 25, 2026Updated:February 25, 2026No Comments2 Mins Read
     

    NAME

    rbash – restricted bash, see bash(1)  

    RESTRICTED SHELL

    If bash is started with the name rbash, or the -r option is supplied at invocation, the shell becomes restricted. A restricted shell is used to set up an environment more controlled than the standard shell. It behaves identically to bash with the exception that the following are disallowed or not performed:

    •
    changing directories with cd
    •
    setting or unsetting the values of SHELL, PATH, ENV, or BASH_ENV
    •
    specifying command names containing /
    •
    specifying a filename containing a / as an argument to the . builtin command
    •
    specifying a filename containing a slash as an argument to the -p option to the hash builtin command
    •
    importing function definitions from the shell environment at startup
    •
    parsing the value of SHELLOPTS from the shell environment at startup
    •
    redirecting output using the >, >|, <>, >&, &>, and >> redirection operators
    •
    using the exec builtin command to replace the shell with another command
    •
    adding or deleting builtin commands with the -f and -d options to the enable builtin command
    •
    using the enable builtin command to enable disabled shell builtins
    •
    specifying the -p option to the command builtin command
    •
    turning off restricted mode with set +r or set +o restricted.

    These restrictions are enforced after any startup files are read.

    When a command that is found to be a shell script is executed, rbash turns off any restrictions in the shell spawned to execute the script.  

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    E2FREEFRAG

    April 7, 2026

    Net::DNS::RR::DHCID

    April 7, 2026

    LOGROTATE

    April 7, 2026

    EVP_MD_CTX_destroy

    April 7, 2026
    Top Posts

    411toppm

    December 2, 2025

    GLIB-COMPILE-SCHEM

    February 5, 2026

    Google Askew

    January 9, 2026

    How To Fix Advapi32.dll Error On Windows XP

    February 9, 2026
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.