chroot
The chroot command changes the root directory (/) for the current running process by creating a secured contained environment known as a "chroot jail".
$ chroot </path/to/chroot-jail>Example
$ mount <storage_device> /mnt/temp-mnt-loc$ ls /
... file-at-user-root-dir.txt
...$ chroot /mnt/temp-mnt-loc $ ls /
... file-at-mounted-dir.txt
...
$ ls /mnt/temp-mnt/loc
... file-at-mounted-dir.txt
...Last updated