Professional Documents
Culture Documents
The Linux directory structure is like a tree. The base of the Linux file system hierarchy begins at the root.
Directories branch off the root, but everything starts at root.
The directory separator in Linux is the forward slash (/). When talking about directories and speaking
directory paths, “forward slash” is abbreviated to “slash.” Often the root of the file system is referred to
as “slash” since the full path to it is /. If you hear someone say “look in slash” or “that file is in slash,”
they are referring to the root directory.
Directories Explanation
/ The directory called “root.” It is the starting point for the file system hierarchy. Note
that this is not related to the root, or super user, account.
/bin Binaries and other executable programs.
/etc System configuration files.
/home Home Directories.
/opt Optional or third party software.
/tmp Temporary space, typically cleared on reboot.
/usr User related programs.
/var Variable data, most notably log files.
Please explain any four Linux directories.
The /run directory is fairly new, and gives applications a standard place to store transient files they
require like sockets and process IDs. These files can’t be stored in /tmp because files in /tmp may be
deleted.
But, the linux commands located under this directory are used typically by system aministrator, for
system maintenance purpose.
The /proc directory similar to the /dev directory because it doesn’t contain standard files. It contains
special files that represent system and process information.
For example: /proc/{pid} directory contains information about the process with that particular pid.
Each Linux file system has a lost+found directory. If the file system crashes, a file system check will be
performed at next boot. Any corrupted files found will be placed in the lost+found directory, so you can
attempt to recover as much data as possible.