1
0
sadboyzvone 7 жил өмнө
parent
commit
4dc0202460
1 өөрчлөгдсөн 32 нэмэгдсэн , 0 устгасан
  1. 32 0
      pages/common/rbash.md

+ 32 - 0
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`
+
+
+
+
+