This section provides an overview of the Ubuntu file system. You might find a fewer or greater number of directories than discussed here in your own system. When some software packages are installed, they create new directories. Updating software packages might also remove or change the name of some directories. See Chapter 7, "Managing Software," for more information on installing, upgrading, or removing software from your Linux system.
To get a more detailed picture, install and use the TRee command to show the root or base directory layout, along with associated subdirectories, like this (note that your system's /usr/src directory might be somewhat different, depending on the version of Ubuntu you have installed or if you have updated Ubuntu with a new kernel, and that not all subdirectories are listed):
|— cdrom -> media/cdrom | — dev | — etc | |-- X11 | |-- acpi | |— apt | |— beagle | |— cups
| |— cdrom -> cdrom0 | |— cdrom-1 | " — cdrom0 | — mnt | — opt
| "-- X11 -> ../bin |-- games |-- include |-- lib |-- local |-- sbin |-- share "— src
|— linux-headers-2.6.15-22 |— linux-headers-2.6.15-22-386 |— linux-headers-2.6.15-23 N-- linux-headers-2.6.15-23-386
This example (pruned from more than 18,000 directories) shows the higher-level directories and corresponds to the directories and descriptions in Table 5.1.
Was this article helpful?