From the course: Linux Tips
Unlock this course with a free trial
Join today to access over 22,500 courses taught by industry experts.
Understanding chroot - Linux Tutorial
From the course: Linux Tips
Understanding chroot
- [Instructor] Chroot or change root is a tool that starts a process using a given root directory, different than the systems root. Processes running inside a chroot are isolated from the rest of the file system in the sense that they can't access files that are outside their confined space. This can be useful for troubleshooting, and for running a process in a space that's separated from the rest of the file system. It can be used for some security purposes, or for providing a clean environment for building software. However, chroot isn't intended to be used for complete security isolation. Using chroot, you can specify the path to a directory that will act as the root directory for the process. Being the effective root of a new environment, when you run a process in a chroot, you'll also need to either have whatever tools or programs you'll already use inside whatever the target root path is, or provide links to those…
Contents
-
-
-
-
System basics: The Linux file system6m 35s
-
System basics: The command line5m 23s
-
System basics: Keyboard shortcuts1m 40s
-
System basics: sudo access and root4m 57s
-
System basics: Explore a system4m 38s
-
System basics: Exploring Bash7m
-
System basics: Bash scripting basics4m 59s
-
System basics: The Bash prompt6m 2s
-
System basics: Bash output redirection4m 57s
-
Bash expansions and substitutions4m 23s
-
Bash aliases and functions4m 7s
-
Bash operators6m 55s
-
Logs5m 4s
-
Grub3m 19s
-
SysV init4m 43s
-
Systemd5m 29s
-
Cron8m 7s
-
Understanding chroot3m 16s
-
System basics: User and group management8m 39s
-
System basics: Service management3m 44s
-
Backing up data with rsync5m 35s
-
Splitting and combining files3m 3s
-
Environment configuration files2m 43s
-
Working with dotfiles1m 43s
-
Exploring the PATH variable3m 51s
-
Browsing with the directory stack3m 19s
-
Finding or locating files3m 52s
-
Working with swap4m 29s
-
Read and write caches3m 5s
-
Terminals, consoles, and TTYs4m 27s
-
Exploring journalctl5m 2s
-
-
-
-
-
-
-
-
-
-
-
-