SlideShare a Scribd company logo
File system Hierarchy Standard:
The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in
Linux operating systems. For the most part, it is a formalization and extension of the traditional
BSD filesystem hierarchy.
The FHS is maintained by the Linux Foundation, a non-profit organization consisting of major
software and hardware vendors, such as HP, Red Hat, IBM and Dell.
Directory structure
In the FHS all files and directories appear under the root directory "/", even if they are stored on
different physical devices. Note however that some of these directories may or may not be
present on a Unix system depending on whether certain subsystems, such as the X Window
System, are installed.
The majority of these directories exist in all UNIX operating systems and are generally used in
much the same way; however, the descriptions here are those used specifically for the FHS, and
are not considered authoritative for platforms other than Linux.
Directory Description
/
Primary hierarchy root and root directory of the entire file
system hierarchy.
/bin/
Essential command binaries that need to be available in
single user mode; for all users, e.g., cat, ls, cp.
/boot/
Boot loader files, e.g., kernels, initrd; often a separate
partition[23]
/dev/ Essential devices, e.g., /dev/null.
/etc/
Host-specific system-wide configuration files
There has been controversy over the meaning of the name
itself. In early versions of the UNIX Implementation
Document from Bell labs, /etc is referred to as the etcetera
directory,[24]
as this directory historically held everything that
did not belong elsewhere (however, the FHS restricts /etc to
static configuration files and may not contain binaries).[25]
Since the publication of early documentation, the directory
name has been re-designated in various ways. Recent
interpretations include Backronyms such as "Editable Text
Configuration" or "Extended Tool Chest".[26]
/etc/opt/ Configuration files for /opt/.
/etc/X11/ Configuration files for the X Window System, version 11.
/etc/sgml/ Configuration files for SGML.
/etc/xml/ Configuration files for XML.
/home/
Users' home directories, containing saved files, personal
settings, etc.; often a separate partition.
/lib/ Libraries essential for the binaries in /bin/ and /sbin/.
/media/
Mount points for removable media such as CD-ROMs
(appeared in FHS-2.3).
/mnt/ Temporarily mounted filesystems.
/opt/ Optional application software packages.[27]
/proc/
Virtual filesystem documenting kernel and process status as
text files, e.g., uptime, network. In Linux, corresponds to a
Procfs mount.
/root/ Home directory for the root user.
/sbin/ Essential system binaries, e.g., init, ip, mount.
/srv/ Site-specific data which is served by the system.
/tmp/
Temporary files (see also /var/tmp). Often not preserved
between system reboots.
/usr/
Secondary hierarchy for read-only user data; contains the
majority of (multi-)user utilities and applications.
/usr/bin/
Non-essential command binaries (not needed in single user
mode); for all users.
/usr/include/ Standard include files.
/usr/lib/ Libraries for the binaries in /usr/bin/ and /usr/sbin/.
/usr/sbin/
Non-essential system binaries, e.g., daemons for various
network-services.
/usr/share/ Architecture-independent (shared) data.
/usr/src/ Source code, e.g., the kernel source code with its header files.
/usr/X11R6/ X Window System, Version 11, Release 6.
/usr/local/
Tertiary hierarchy for local data, specific to this host.
Typically has further subdirectories, e.g., bin/, lib/,
share/.
/var/
Variable files—files whose content is expected to continually
change during normal operation of the system—such as logs,
spool files, and temporary e-mail files. Sometimes a separate
partition.
/var/cache/
Application cache data. Such data is locally generated as a
result of time-consuming I/O or calculation. The application
must be able to regenerate or restore the data. The cached
files can be deleted without data loss
/var/lib/ State information. Persistent data modified by programs as
they run, e.g., databases, packaging system metadata, etc.
/var/lock/ Lock files. Files keeping track of resources currently in use.
/var/log/
/var/mail/
/var/run/
/var/spool/
/var/spool/mail/
/var/tmp

More Related Content

PPT
Basic linux architecture
PDF
File System Hierarchy
ODP
File system hiearchy
PPTX
File system structure in linux
PPTX
file system in operating system
PPT
Xfs file system for linux
DOCX
The linux file system structure
PPT
Linux file system nevigation
Basic linux architecture
File System Hierarchy
File system hiearchy
File system structure in linux
file system in operating system
Xfs file system for linux
The linux file system structure
Linux file system nevigation

What's hot (20)

PPTX
File system Os
PDF
Lesson 2 Understanding Linux File System
PPT
Mca ii os u-5 unix linux file system
PPTX
Linux file system
PDF
File System Implementation - Part1
PPT
Linux file system
PPTX
Linux Directory System: Introduction
PPTX
File system structure
PPTX
Linux standard file system
PDF
linux file system
PPTX
directory structure and file system mounting
PDF
Operating Systems - Implementing File Systems
PPTX
Linux and windows file system
ODP
The evolution of linux file system
PDF
Linux course fhs file hierarchy standard
PDF
File systems linux class 8
PDF
File
PPTX
File Directory Structure-R.D.Sivakumar
PPT
Ch11 file system interface
File system Os
Lesson 2 Understanding Linux File System
Mca ii os u-5 unix linux file system
Linux file system
File System Implementation - Part1
Linux file system
Linux Directory System: Introduction
File system structure
Linux standard file system
linux file system
directory structure and file system mounting
Operating Systems - Implementing File Systems
Linux and windows file system
The evolution of linux file system
Linux course fhs file hierarchy standard
File systems linux class 8
File
File Directory Structure-R.D.Sivakumar
Ch11 file system interface
Ad

Similar to File system hierarchy standard (20)

PPTX
Tahir Ashraf [Linux file system herarchy].pptx
PPTX
Lab 5 Linux File Structure and Hierarchy.pptx
PDF
File system discovery
PPT
LinuxTraining_26_Sept_2021.ppt
PDF
Linux file
ODP
Nguyễn Vũ Hưng: Basic Linux Power Tools
DOCX
Linux notes
PPTX
Files and directories in Linux 6
PDF
Lecture1 Introduction
PPT
User administration concepts and mechanisms
PPT
OS Lab: Introduction to Linux
PPT
Chapter 1 Overview of system administration.ppt
PPT
managing-the-linux-file-system_suse_.ppt
PPT
managing-the-linux-file-system________________________
PDF
Linux directory structure by jitu mistry
PPTX
Unix training session 1
PPT
Linux Commands
ODP
Linux introduction-commands2338
ODP
Linux Introduction (Commands)
ODP
Linux introduction-commands2338
Tahir Ashraf [Linux file system herarchy].pptx
Lab 5 Linux File Structure and Hierarchy.pptx
File system discovery
LinuxTraining_26_Sept_2021.ppt
Linux file
Nguyễn Vũ Hưng: Basic Linux Power Tools
Linux notes
Files and directories in Linux 6
Lecture1 Introduction
User administration concepts and mechanisms
OS Lab: Introduction to Linux
Chapter 1 Overview of system administration.ppt
managing-the-linux-file-system_suse_.ppt
managing-the-linux-file-system________________________
Linux directory structure by jitu mistry
Unix training session 1
Linux Commands
Linux introduction-commands2338
Linux Introduction (Commands)
Linux introduction-commands2338
Ad

More from Teja Bheemanapally (20)

PDF
PPTX
DOCX
Linux or unix interview questions
DOCX
Linux crontab
DOCX
Linux basic commands
PPTX
Linux01122011
PPTX
Kernel (computing)
DOCX
Installing red hat enterprise linux1
DOCX
Linux basic commands tutorial
DOCX
In a monolithic kerne1
PDF
Common linuxcommandspocketguide07
DOCX
50 most frequently used unix
PDF
Basic commands
DOCX
File system hierarchy standard
DOCX
40 basic linux command
DOCX
15 practical grep command examples in linux
DOCX
25 most frequently used linux ip tables rules examples
PDF
Shell intro
DOCX
6 stages of linux boot process
PPTX
Kernel (computing)
Linux or unix interview questions
Linux crontab
Linux basic commands
Linux01122011
Kernel (computing)
Installing red hat enterprise linux1
Linux basic commands tutorial
In a monolithic kerne1
Common linuxcommandspocketguide07
50 most frequently used unix
Basic commands
File system hierarchy standard
40 basic linux command
15 practical grep command examples in linux
25 most frequently used linux ip tables rules examples
Shell intro
6 stages of linux boot process
Kernel (computing)

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Big Data Technologies - Introduction.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Electronic commerce courselecture one. Pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
MYSQL Presentation for SQL database connectivity
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Electronic commerce courselecture one. Pdf
Unlocking AI with Model Context Protocol (MCP)
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Spectral efficient network and resource selection model in 5G networks
NewMind AI Weekly Chronicles - August'25 Week I
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

File system hierarchy standard

  • 1. File system Hierarchy Standard: The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux operating systems. For the most part, it is a formalization and extension of the traditional BSD filesystem hierarchy. The FHS is maintained by the Linux Foundation, a non-profit organization consisting of major software and hardware vendors, such as HP, Red Hat, IBM and Dell. Directory structure In the FHS all files and directories appear under the root directory "/", even if they are stored on different physical devices. Note however that some of these directories may or may not be present on a Unix system depending on whether certain subsystems, such as the X Window System, are installed. The majority of these directories exist in all UNIX operating systems and are generally used in much the same way; however, the descriptions here are those used specifically for the FHS, and are not considered authoritative for platforms other than Linux. Directory Description / Primary hierarchy root and root directory of the entire file system hierarchy. /bin/ Essential command binaries that need to be available in single user mode; for all users, e.g., cat, ls, cp. /boot/ Boot loader files, e.g., kernels, initrd; often a separate partition[23] /dev/ Essential devices, e.g., /dev/null. /etc/ Host-specific system-wide configuration files There has been controversy over the meaning of the name itself. In early versions of the UNIX Implementation Document from Bell labs, /etc is referred to as the etcetera directory,[24] as this directory historically held everything that did not belong elsewhere (however, the FHS restricts /etc to static configuration files and may not contain binaries).[25] Since the publication of early documentation, the directory name has been re-designated in various ways. Recent interpretations include Backronyms such as "Editable Text Configuration" or "Extended Tool Chest".[26] /etc/opt/ Configuration files for /opt/. /etc/X11/ Configuration files for the X Window System, version 11. /etc/sgml/ Configuration files for SGML.
  • 2. /etc/xml/ Configuration files for XML. /home/ Users' home directories, containing saved files, personal settings, etc.; often a separate partition. /lib/ Libraries essential for the binaries in /bin/ and /sbin/. /media/ Mount points for removable media such as CD-ROMs (appeared in FHS-2.3). /mnt/ Temporarily mounted filesystems. /opt/ Optional application software packages.[27] /proc/ Virtual filesystem documenting kernel and process status as text files, e.g., uptime, network. In Linux, corresponds to a Procfs mount. /root/ Home directory for the root user. /sbin/ Essential system binaries, e.g., init, ip, mount. /srv/ Site-specific data which is served by the system. /tmp/ Temporary files (see also /var/tmp). Often not preserved between system reboots. /usr/ Secondary hierarchy for read-only user data; contains the majority of (multi-)user utilities and applications. /usr/bin/ Non-essential command binaries (not needed in single user mode); for all users. /usr/include/ Standard include files. /usr/lib/ Libraries for the binaries in /usr/bin/ and /usr/sbin/. /usr/sbin/ Non-essential system binaries, e.g., daemons for various network-services. /usr/share/ Architecture-independent (shared) data. /usr/src/ Source code, e.g., the kernel source code with its header files. /usr/X11R6/ X Window System, Version 11, Release 6. /usr/local/ Tertiary hierarchy for local data, specific to this host. Typically has further subdirectories, e.g., bin/, lib/, share/. /var/ Variable files—files whose content is expected to continually change during normal operation of the system—such as logs, spool files, and temporary e-mail files. Sometimes a separate partition. /var/cache/ Application cache data. Such data is locally generated as a result of time-consuming I/O or calculation. The application must be able to regenerate or restore the data. The cached files can be deleted without data loss /var/lib/ State information. Persistent data modified by programs as
  • 3. they run, e.g., databases, packaging system metadata, etc. /var/lock/ Lock files. Files keeping track of resources currently in use. /var/log/ /var/mail/ /var/run/ /var/spool/ /var/spool/mail/ /var/tmp