Easy Tutorial
❮ Linux Comm Fsck Linux System Boot ❯

Linux chroot Command

Linux Command Manual

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

The chroot command replaces the root directory with the specified target directory.

Syntax

chroot [--help][--version][target directory][execute command...]

Parameter Description:

Example

Change the root directory

# chroot /mnt/ls //Change the root directory

Linux Command Manual

❮ Linux Comm Fsck Linux System Boot ❯