ladybird/Base/usr/share/man/man8/chroot.md

31 lines
561 B
Markdown
Raw Normal View History

## Name
chroot - run a shell with a different filesystem root
## Synopsis
```**sh
2020-01-12 21:54:06 +03:00
# chroot <path> [program] [-o options]
```
## Description
This program uses the [`chroot`(2)](../man2/chroot.md) syscall to switch into a
different filesystem root and spawn a shell inside it.
2020-01-12 21:54:06 +03:00
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
```sh
# chroot /var/chroot
# pwd
/
```
## See also
* [`chroot`(2)](../man2/chroot.md)
2020-01-12 21:54:06 +03:00
* [`mount`(8)](mount.md)