{
    "mode": "man",
    "parameter": "rbash",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/rbash/1/json",
    "generated": "2026-06-03T01:23:41Z",
    "sections": {
        "NAME": {
            "content": "rbash - restricted bash, see bash(1)\n",
            "subsections": []
        },
        "RESTRICTED SHELL": {
            "content": "If bash is started with the name rbash, or the -r option is supplied at invocation, the shell\nbecomes restricted.  A restricted shell is used to set up an environment more controlled than\nthe standard shell.  It behaves identically to bash with the exception that the following are\ndisallowed or not performed:\n\n•      changing directories with cd\n\n•      setting or unsetting the values of SHELL, PATH, HISTFILE, ENV, or BASHENV\n\n•      specifying command names containing /\n\n•      specifying a filename containing a / as an argument to the .  builtin command\n\n•      specifying a filename containing a slash as an argument to the history builtin command\n\n•      specifying a filename containing a slash as an argument to the -p option to  the  hash\nbuiltin command\n\n•      importing function definitions from the shell environment at startup\n\n•      parsing the value of SHELLOPTS from the shell environment at startup\n\n•      redirecting output using the >, >|, <>, >&, &>, and >> redirection operators\n\n•      using the exec builtin command to replace the shell with another command\n\n•      adding  or  deleting builtin commands with the -f and -d options to the enable builtin\ncommand\n\n•      using the enable builtin command to enable disabled shell builtins\n\n•      specifying the -p option to the command builtin command\n\n•      turning off restricted mode with set +r or set +o restricted.\n\nThese restrictions are enforced after any startup files are read.\n\nWhen a command that is found to be a shell script is executed, rbash turns off  any  restric‐\ntions in the shell spawned to execute the script.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "bash(1)\n\n\n\nGNU Bash-4.0                                 2004 Apr 20                                    RBASH(1)",
            "subsections": []
        }
    },
    "summary": "rbash - restricted bash, see bash(1)",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "bash",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/bash/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "This command is an alias of `bash --restricted`.",
        "examples": [
            {
                "description": "View documentation for the original command",
                "command": "tldr bash"
            }
        ]
    }
}