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

ODP
File system hiearchy
sritolia
 
PDF
File System Hierarchy
sritolia
 
DOCX
File system hierarchy standard
Teja Bheemanapally
 
PPT
Basic linux architecture
Rohit Kumar
 
PPTX
Files and directories in Linux 6
Meenakshi Paul
 
PPT
Linux fs structure (1)
E. Rahul Naidu
 
PPTX
file system in operating system
tittuajay
 
PPT
Xfs file system for linux
Ajay Sood
 
File system hiearchy
sritolia
 
File System Hierarchy
sritolia
 
File system hierarchy standard
Teja Bheemanapally
 
Basic linux architecture
Rohit Kumar
 
Files and directories in Linux 6
Meenakshi Paul
 
Linux fs structure (1)
E. Rahul Naidu
 
file system in operating system
tittuajay
 
Xfs file system for linux
Ajay Sood
 

What's hot (20)

PPTX
Root file system
Bindu U
 
PPTX
File system Os
Nehal Naik
 
PPTX
Linux and windows file system
lin yucheng
 
PDF
Linux course fhs file hierarchy standard
Khawar Nehal [email protected]
 
PPT
Edubooktraining
norhloudspeaker
 
PDF
Buffer cache unix ppt Mrs.Sowmya Jyothi
Sowmya Jyothi
 
PDF
Operating Systems - Implementing File Systems
Mukesh Chinta
 
PPT
4.6 create and change hard and symbolic links v2
Acácio Oliveira
 
PDF
File management
Mohd Arif
 
ODP
NTFS and Inode
Amit Seal Ami
 
PPT
Basics of unix
Arnold Derrick Kinney
 
PPTX
File System Implementation
Abhishek Pachisia
 
DOC
84640411 study-of-unix-os
homeworkping3
 
PPTX
File system structure
sangrampatil81
 
PPT
Chapter07 Advanced File System Management
Raja Waseem Akhtar
 
PDF
Glusterfs session #1 disk filesystems
Pranith Karampuri
 
PPTX
Operating Systems - File Management
Damian T. Gordon
 
PPT
File Management
Munazza-Mah-Jabeen
 
PPT
101 4.7 find system files and place files in the correct location
Acácio Oliveira
 
PPTX
physical file system in operating system
tittuajay
 
Root file system
Bindu U
 
File system Os
Nehal Naik
 
Linux and windows file system
lin yucheng
 
Linux course fhs file hierarchy standard
Khawar Nehal [email protected]
 
Edubooktraining
norhloudspeaker
 
Buffer cache unix ppt Mrs.Sowmya Jyothi
Sowmya Jyothi
 
Operating Systems - Implementing File Systems
Mukesh Chinta
 
4.6 create and change hard and symbolic links v2
Acácio Oliveira
 
File management
Mohd Arif
 
NTFS and Inode
Amit Seal Ami
 
Basics of unix
Arnold Derrick Kinney
 
File System Implementation
Abhishek Pachisia
 
84640411 study-of-unix-os
homeworkping3
 
File system structure
sangrampatil81
 
Chapter07 Advanced File System Management
Raja Waseem Akhtar
 
Glusterfs session #1 disk filesystems
Pranith Karampuri
 
Operating Systems - File Management
Damian T. Gordon
 
File Management
Munazza-Mah-Jabeen
 
101 4.7 find system files and place files in the correct location
Acácio Oliveira
 
physical file system in operating system
tittuajay
 
Ad

Similar to File system hierarchy standard (20)

PPT
LinuxTraining_26_Sept_2021.ppt
muraridesai2
 
PDF
File system discovery
MOHAMED Elshawaf
 
PDF
File system discovery
DevMix
 
PPTX
Lab 5 Linux File Structure and Hierarchy.pptx
Ciceer Ghimirey
 
PDF
Linux Directory Structure
Kevin OBrien
 
PPTX
Linux fundamentals
Raghu nath
 
PDF
Linux directory structure by jitu mistry
JITU MISTRY
 
PPTX
Linux standard file system
Taaanu01
 
PDF
Linux file
Duluth Markets
 
PDF
Lecture1 Introduction
Mohammed Farrag
 
PPTX
Tahir Ashraf [Linux file system herarchy].pptx
SayedtahirAshraf
 
PPT
Linux filesystemhierarchy
Dr. C.V. Suresh Babu
 
PDF
Linux introduction (eng)
Anatoliy Okhotnikov
 
PPT
OS Lab: Introduction to Linux
Motaz Saad
 
PPTX
Unix file system.pptx
rakeshrajput73
 
DOCX
Linux notes
Teja Bheemanapally
 
PPT
Linux Commands
Ramasubbu .P
 
PPTX
Week6 filesystem
Gagah Arifianto
 
ODP
Linux introduction-commands2338
Cam YP Co., Ltd
 
ODP
Linux introduction-commands2338
Cam YP Co., Ltd
 
LinuxTraining_26_Sept_2021.ppt
muraridesai2
 
File system discovery
MOHAMED Elshawaf
 
File system discovery
DevMix
 
Lab 5 Linux File Structure and Hierarchy.pptx
Ciceer Ghimirey
 
Linux Directory Structure
Kevin OBrien
 
Linux fundamentals
Raghu nath
 
Linux directory structure by jitu mistry
JITU MISTRY
 
Linux standard file system
Taaanu01
 
Linux file
Duluth Markets
 
Lecture1 Introduction
Mohammed Farrag
 
Tahir Ashraf [Linux file system herarchy].pptx
SayedtahirAshraf
 
Linux filesystemhierarchy
Dr. C.V. Suresh Babu
 
Linux introduction (eng)
Anatoliy Okhotnikov
 
OS Lab: Introduction to Linux
Motaz Saad
 
Unix file system.pptx
rakeshrajput73
 
Linux notes
Teja Bheemanapally
 
Linux Commands
Ramasubbu .P
 
Week6 filesystem
Gagah Arifianto
 
Linux introduction-commands2338
Cam YP Co., Ltd
 
Linux introduction-commands2338
Cam YP Co., Ltd
 
Ad

More from Teja Bheemanapally (20)

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

Recently uploaded (20)

PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
CDH. pptx
AneetaSharma15
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
CDH. pptx
AneetaSharma15
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 

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