chroot.8

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 8 代码 · 共 44 行

8
44
字号
.TH chroot 8.SH Namechroot \- change root directory for a command.SH Syntax.B /usr/bin/chroot.I "newroot command".SH Description.NXr "root directory change".NXM "root directory" "chroot command"The .PN chrootprogram is executedrelative to the .IR "new root" .The meaning of any initial slashes.RB ( / )in path names is changed for a command and any of its children to.IR newroot .Furthermore, the initial working directory is.IR newroot ..PPThe new root path name is always relative to the current root: even if a.PN chrootis currently in effect, the.I newrootargument is relative to the current root of therunning process..SH RestrictionsThis program is restricted to processes with appropriate privileges..PPUse extreme caution when referencing special filesin the new root file system..SH ExamplesThe following example will create the file.B xrelative to the original root, not the new one..sp.RS%\fBchroot \|\fInewroot \|command\fP \|>x\fR.RE.SH See Alsochdir(2), chroot(2)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?