13-File System Structure
13-File System Structure
13-File System Structure
On a Linux system, everything is a file if something is not a file, it is a process. Most files are
regular files; they contain normal data, for example text files, executable files or programs,
input for or output from a program and so on. As Linux stores data and programs in files. These
are organized in directories. A directory is just a file that contains other files or directories.
In Windows operating system, we have C:\ drive, and there are many directories under C:\,
such as Documents and Settings, Program Files, etc. In Linux, we can think of / (root directory)
as C drive in Windows. All file system directory or mount points in Linux are under / directory.
There are many directories full of child directories and files. Some directories such as bin, sbin
and lib can be found in several other directories too. The following table describes many of the
most common Linux directories. Some file system and directories structure in one Linux
distribution maybe different from other Linux distributions.