1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
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 12:04:46 +01:00
- Run command as new root director:
`chroot {{/path/to/new/root}} {{command}}`
2016-01-13 12:04:46 +01:00
- Specify user and group (ID or name) to us:
`chroot −−userspec={{user:group}}`