Skip to content

Commit

Permalink
rbash: add page
Browse files Browse the repository at this point in the history
  • Loading branch information
zvonimirr committed Nov 16, 2017
1 parent ced7343 commit 4dc0202
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pages/common/rbash.md
Original file line number Diff line number Diff line change
@@ -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`





0 comments on commit 4dc0202

Please sign in to comment.