0% found this document useful (0 votes)
143 views

Lecture 03 Linux File System Hierarchy Standard

The Linux filesystem hierarchy organizes files and directories in a structured manner. The root directory ("/") is the top-most directory that contains all other directories. The /bin directory contains common commands used by all users, while /boot contains files needed for booting. Device files are located in /dev, configuration files in /etc, and user home directories in /home. System libraries are in /lib, mounted filesystems can be attached to /mnt, and /root is the home directory for the root user. System binaries are in /sbin, service data in /srv, temporary files in /tmp, user programs in /usr, and variable/log files in /var.

Uploaded by

John Dubois
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
143 views

Lecture 03 Linux File System Hierarchy Standard

The Linux filesystem hierarchy organizes files and directories in a structured manner. The root directory ("/") is the top-most directory that contains all other directories. The /bin directory contains common commands used by all users, while /boot contains files needed for booting. Device files are located in /dev, configuration files in /etc, and user home directories in /home. System libraries are in /lib, mounted filesystems can be attached to /mnt, and /root is the home directory for the root user. System binaries are in /sbin, service data in /srv, temporary files in /tmp, user programs in /usr, and variable/log files in /var.

Uploaded by

John Dubois
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Linux filesystem Hierarchy

"/ "

The /Root Directory, every single directory and file starts from the root directory .
Only the root user has the ability to write under the root directory.

/bin - User Binaries

The binary executables and the common Linux commands needed to be used in single
user modes are Located in the /bin Directory. /bin also contains the commands that
are used by all users of the system.

/boot - Boot Loader Files

All of the files needed to


example your Linux kernels
boot loader's configuration
program configuration files

boot the system are located in the /boot directory. For


and the GRUB boot loader's files are located here, but the
files aren't located here, they are located in /etc., All
are located in /etc.

/dev - Device Files


hard disks , floppy , cd-rom , usb , all of these device files are located under /dev.

/etc - Configuration Files


The configuration files required by all programs are located in /etc . It also contains
system-wide configuration files. /etc does not contain user-specific configuration
files; user-specific configuration files are located in each user's home directory.

/home - Home directories


Home directories for all users are located in /home.

/lib - System libraries


The library Files that support the binaries located in /bin and /sbin are located in /lib.

/mnt - Mount Directory

When system administrators mount temporary file systems while using them, those
file systems are mounted by default on /mnt directory. However, file systems can be
mounted anywhere on the system.

/root
/root is different from the " / " , the home directory of the user root is /root . The user
root is the administrator that has all authorities.

/sbin - System Binaries


Like the /bin directory, the /sbin contains binary executable. For system maintenance
purposes, the Linux commands located in this directory are used typically by system
administrators.

/srv - Service Data


Data for services provided by the system are located in /srv . For example if you are
using the Apache HTTP server to serve a website, then you will probably save or
store your website's files in a directory under the /srv directory.

/tmp - Temporary Files


Temporary files created by system and users are located in /tmp . Note the the files in
this directory are automatically deleted when the system is rebooted.

/usr - User Programs

Applications and files used by users are located in /usr.

/var - Variable Data Files

The writable counterpart to the /usr directory is the / var directory. Everything
including log files that will be written to /usr (during normal operation) will be
automatically written to the /var directory .For example, Log files will be found in
/var/log.

You might also like