132k views
2 votes
​Select the command that can be used to change the root filesystem to a different directory, such as when in a rescue environment.

a. croot
b. set_root
c. change_root
d. ​chroot

1 Answer

3 votes
To change the root file system to a different directory in Linux, you can use the `chroot` command. The `chroot` command allows you to change the root directory for a specific process or shell session. Here's the basic syntax:

```
chroot /path/to/new/root /path/to/command
```

This command will execute the specified command with the new root directory set to `/path/to/new/root`
User FuzzyDuck
by
8.6k points