The directory tree and standard directories
To see the main structure of the root folder, just use the following command: tree -
L 1
.
Figure 3.2 – The command to see a directory structure tree
To better grasp how the Linux filesystem functions in general, let’s examine what each folder’s purpose is with reference to the Linux filesystem diagram shown in Figure 3.2. Not all of the folders mentioned here nor in the preceding examples will be found in every Linux distribution, but the vast majority of them will:
/bin
: The majority of your binary files are kept in this location, which is pronounced bin, and is often used by Linux Terminal commands and essential utilities such ascd
(change directory),pwd
(print working directory),mv
(move), and others./boot
: All of the boot files for Linux can be found in this folder. The majority of people, including myself, save this directory on a separate partition of their hard drive...