Linux chroot Command

Linux 命令大全Linux Command Encyclopedia

Linux chroot (full English name: change root) command is used to change the root directory.

The chroot command changes the root directory to the specified target directory.

Syntax

chroot [--help][--version][目的目录][执行指令...]

Parameter Description:

  • --help: Online help.
  • --version: Displays version information.

Examples

Change the root directory

# chroot /mnt/ls //改变根目录

Linux 命令大全Linux Command Encyclopedia

Other Extensions