From 4dc0202460d52122b209c0fa03f5d31551820a1c Mon Sep 17 00:00:00 2001 From: sadboyzvone Date: Thu, 16 Nov 2017 22:40:05 +0100 Subject: [PATCH] rbash: add page --- pages/common/rbash.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/rbash.md diff --git a/pages/common/rbash.md b/pages/common/rbash.md new file mode 100644 index 0000000000..83395fd3d2 --- /dev/null +++ b/pages/common/rbash.md @@ -0,0 +1,32 @@ +# rbash + +> Restricted Bash shell +> Restrictions implemented in rbash +> cd command +> PATH and ENV (setting/unsetting) +> Importing function +> Specifying file name containing argument ‘/’ +> Specifying file name containing argument ‘-‘ +> Redirecting output using ‘>‘, ‘>>‘, ‘>|‘, ‘<>‘, ‘>&‘, ‘&>‘ +> Turning off restriction using ‘set +r‘ or ‘set +o‘ + +- Start rbash: + +`rbash` + +- Execute a command: + +`rbash -c "{{command}}"` + +- Run commands from a file: + +`rbash {{file.sh}}` + +- Print the version information of rbash: + +`rbash --version` + + + + +