tldr/pages/linux/chroot.md

12 lines
241 B
Markdown
Raw Normal View History

# chroot
> Run command or interactive shell with special root directory.
2016-01-13 11:04:46 +00:00
- Run command as new root director:
`chroot {{/path/to/new/root}} {{command}}`
2016-01-13 11:04:46 +00:00
- Specify user and group (ID or name) to us:
`chroot userspec={{user:group}}`