1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:37:34 +00:00

Base: Document new chroot abilities

This commit is contained in:
Sergey Bugaev 2020-01-12 21:54:06 +03:00 committed by Andreas Kling
parent 33c0dc08a7
commit 9513f54932
2 changed files with 12 additions and 3 deletions

View file

@ -5,7 +5,7 @@ chroot - run a shell with a different filesystem root
## Synopsis
```**sh
# chroot
# chroot <path> [program] [-o options]
```
## Description
@ -13,7 +13,8 @@ chroot - run a shell with a different filesystem root
This program uses the [`chroot`(2)](../man2/chroot.md) syscall to switch into a
different filesystem root and spawn a shell inside it.
It will not work unless there is a `/bin/Shell` available inside the new root.
It runs the given *program* (by default, `/bin/Shell`) inside the new root.
Mount options can be given in the same format as for [`mount`(8)](mount.md).
## Examples
@ -26,3 +27,4 @@ It will not work unless there is a `/bin/Shell` available inside the new root.
## See also
* [`chroot`(2)](../man2/chroot.md)
* [`mount`(8)](mount.md)