SlideShare a Scribd company logo
1 of 3
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

What's hot

Linux Directory System: Introduction
Linux Directory System: IntroductionLinux Directory System: Introduction
Linux Directory System: Introduction
Amar Jukuntla
 

What's hot (20)

File system Os
File system OsFile system Os
File system Os
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Unix1
Unix1Unix1
Unix1
 
Mca ii os u-5 unix linux file system
Mca  ii  os u-5 unix linux file systemMca  ii  os u-5 unix linux file system
Mca ii os u-5 unix linux file system
 
Linux file system
Linux file systemLinux file system
Linux file system
 
File System Implementation - Part1
File System Implementation - Part1File System Implementation - Part1
File System Implementation - Part1
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux Directory System: Introduction
Linux Directory System: IntroductionLinux Directory System: Introduction
Linux Directory System: Introduction
 
File system structure
File system structureFile system structure
File system structure
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
linux file system
linux file systemlinux file system
linux file system
 
directory structure and file system mounting
directory structure and file system mountingdirectory structure and file system mounting
directory structure and file system mounting
 
Operating Systems - Implementing File Systems
Operating Systems - Implementing File SystemsOperating Systems - Implementing File Systems
Operating Systems - Implementing File Systems
 
Linux and windows file system
Linux and windows  file systemLinux and windows  file system
Linux and windows file system
 
The evolution of linux file system
The evolution of linux file systemThe evolution of linux file system
The evolution of linux file system
 
Linux course fhs file hierarchy standard
Linux   course   fhs file hierarchy standardLinux   course   fhs file hierarchy standard
Linux course fhs file hierarchy standard
 
File systems linux class 8
File systems linux class 8File systems linux class 8
File systems linux class 8
 
File
FileFile
File
 
File Directory Structure-R.D.Sivakumar
File Directory Structure-R.D.SivakumarFile Directory Structure-R.D.Sivakumar
File Directory Structure-R.D.Sivakumar
 
Ch11 file system interface
Ch11 file system interfaceCh11 file system interface
Ch11 file system interface
 

Similar to File system hierarchy standard

OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
Motaz Saad
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
Cam YP Co., Ltd
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
Raghu nath
 

Similar to File system hierarchy standard (20)

Tahir Ashraf [Linux file system herarchy].pptx
Tahir Ashraf [Linux file system herarchy].pptxTahir Ashraf [Linux file system herarchy].pptx
Tahir Ashraf [Linux file system herarchy].pptx
 
Lab 5 Linux File Structure and Hierarchy.pptx
Lab 5 Linux File Structure and Hierarchy.pptxLab 5 Linux File Structure and Hierarchy.pptx
Lab 5 Linux File Structure and Hierarchy.pptx
 
File system discovery
File system discovery File system discovery
File system discovery
 
LinuxTraining_26_Sept_2021.ppt
LinuxTraining_26_Sept_2021.pptLinuxTraining_26_Sept_2021.ppt
LinuxTraining_26_Sept_2021.ppt
 
Linux file
Linux fileLinux file
Linux file
 
Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools
 
Linux notes
Linux notesLinux notes
Linux notes
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6
 
Lecture1 Introduction
Lecture1  IntroductionLecture1  Introduction
Lecture1 Introduction
 
User administration concepts and mechanisms
User administration concepts and mechanismsUser administration concepts and mechanisms
User administration concepts and mechanisms
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
 
Linux directory structure by jitu mistry
Linux directory structure by jitu mistryLinux directory structure by jitu mistry
Linux directory structure by jitu mistry
 
Unix training session 1
Unix training   session 1Unix training   session 1
Unix training session 1
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Unix operating system architecture with file structure
Unix operating system architecture with file structure Unix operating system architecture with file structure
Unix operating system architecture with file structure
 
Linux administration classes in mumbai
Linux administration classes in mumbaiLinux administration classes in mumbai
Linux administration classes in mumbai
 

More from Teja Bheemanapally (20)

Teradata
TeradataTeradata
Teradata
 
Teradata
TeradataTeradata
Teradata
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
 
Linux crontab
Linux crontabLinux crontab
Linux crontab
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux01122011
Linux01122011Linux01122011
Linux01122011
 
Kernel (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 
Installing red hat enterprise linux1
Installing red hat enterprise linux1Installing red hat enterprise linux1
Installing red hat enterprise linux1
 
Linux basic commands tutorial
Linux basic commands tutorialLinux basic commands tutorial
Linux basic commands tutorial
 
In a monolithic kerne1
In a monolithic kerne1In a monolithic kerne1
In a monolithic kerne1
 
Common linuxcommandspocketguide07
Common linuxcommandspocketguide07Common linuxcommandspocketguide07
Common linuxcommandspocketguide07
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
Basic commands
Basic commandsBasic commands
Basic commands
 
File system hierarchy standard
File system hierarchy standardFile system hierarchy standard
File system hierarchy standard
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
15 practical grep command examples in linux
15 practical grep command examples in linux15 practical grep command examples in linux
15 practical grep command examples in linux
 
25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples
 
Shell intro
Shell introShell intro
Shell intro
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Kernel (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 

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