chroot
v(uutils coreutils) 0.1.0
Options
--groups=<GROUP1,GROUP2...>
-
chroot-help-groups
--userspec=<USER:GROUP>
-
chroot-help-userspec
--skip-chdir
-
chroot-help-skip-chdir
Examples
Run command as new root directory:
sudo chroot {{path/to/new/root}} {{command}}
Use a specific user and group:
sudo chroot --userspec {{username_or_id:group_name_or_id}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.