chroot(名词/动词,计算机)指在类 Unix 系统中通过改变进程的“根目录”(root directory),把该进程限制在某个指定目录树内运行的机制/操作。常用于隔离测试环境、修复系统、构建软件、提升安全性(轻量隔离)等。
(也可泛指由此形成的“chroot 环境/沙盒”。)
/tʃruːt/
I used chroot to repair the system from a live USB.
我用 chroot 从启动 U 盘进入系统环境来修复系统。
For security reasons, the service runs in a chroot jail with only the files it needs.
出于安全考虑,这个服务运行在一个 chroot 隔离环境里,只能访问它所需的文件。
chroot 来自 Unix 命令名,可理解为 change root(改变根目录)的缩写/合成:**ch-**(change 的缩略)+ root。该概念源于早期 Unix 的系统管理与权限隔离实践,后来在 Linux/BSD 等系统中广泛使用。