chroot
Run command or interactive shell with special root directory. More information: https://www.gnu.org/software/coreutils/manual/html_node/chroot-invocation.html.
- Run
$SHELLin the new root directory:
sudo chroot
- Run command as new root directory:
sudo chroot
- Use a specific user and group:
sudo chroot --userspec :
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
