{
    "content": [
        {
            "type": "text",
            "text": "# rbash(1) (man)\n\n## TLDR\n\n> This command is an alias of `bash --restricted`.\n\n- View documentation for the original command:\n  `tldr bash`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** rbash - restricted bash, see bash(1)\n\n## See Also\n\n- bash(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **RESTRICTED SHELL** (40 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nrbash - restricted bash, see bash(1)\n\n### RESTRICTED SHELL\n\nIf 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\n### SEE ALSO\n\nbash(1)\n\n\n\nGNU Bash-4.0                                 2004 Apr 20                                    RBASH(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "rbash",
        "section": "1",
        "mode": "man",
        "summary": "rbash - restricted bash, see bash(1)",
        "synopsis": null,
        "tldr_summary": "This command is an alias of `bash --restricted`.",
        "tldr_examples": [
            {
                "description": "View documentation for the original command",
                "command": "tldr bash"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "bash",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/bash/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "RESTRICTED SHELL",
                "lines": 40,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}