SlideShare a Scribd company logo
14
Most read
20
Most read
21
Most read
Topic : Linux File Structure and Hierarchy
The Linux File Hierarchy Structure or the Filesystem
Hierarchy Standard (FHS) defines the directory structure and
directory contents in Unix-like operating systems.
In FHS,
• all files and directories appear under the root directory /,
even if they are stored on different physical or virtual
devices.
Linux File Structure & Hierarchy
It is a Primary Hierarchy.The root
directory of the entire file system
hierarchy.
• Every single file and directory
starts from the root directory.
• The only root user has the right to
write under this directory.
• /root is the root user’s home
directory, which is not the same
as /
Linux File Structure & Hierarchy
1. / or Root
Essential command binaries that
need to be available in single-user
mode; for all users, e.g., cat, ls, cp.
• Contains binary executables.
• Commands used by all the
users of the system are located
here e.g. ps, ls, ping, grep, cp.
Linux File Structure & Hierarchy
2. /bin
Boot loader files, e.g., kernels, initrd.
• Kernel initrd, vmlinux, grub files
are located under /boot
Linux File Structure & Hierarchy
3. /boot
Essential device files, e.g. /dev/null. .
• These include terminal devices,
usb, or any device attached to
the system.
Linux File Structure & Hierarchy
4. /dev
Host-specific system-wide
configuration files.
• Contains configuration files
required by all programs.
• This also contains startup and
shutdown shell scripts used to
start/stop individual programs.
Linux File Structure & Hierarchy
5. /etc
Host-specific system-wide configuration files.
• Contains configuration files required by all
programs.
• This also contains startup and shutdown
shell scripts used to start/stop individual
programs.
Linux File Structure & Hierarchy
6. /home
Libraries essential for the binaries in
/bin/ and /sbin/.
Linux File Structure & Hierarchy
7. /lib
It shows removable media such as
CD-ROMs,USBs etc.
Linux File Structure & Hierarchy
8. /media
Temporary mount directory where
sysadmins can mount filesystems.
Linux File Structure & Hierarchy
9. /mnt
Optional application software
packages.
Contains add-on applications from
individual vendors.
Linux File Structure & Hierarchy
10. /opt
Essential system binaries, e.g., fsck, init,
route.
• Just like /bin, /sbin also contains
binary executables.
• The linux commands located under
this directory are used typically by
system administrator, for system
maintenance purpose.
Linux File Structure & Hierarchy
11. /sbin
Site-specific data served by this
system, such as data and scripts for
web servers, data offered by FTP
servers, and repositories for version
control systems.
Linux File Structure & Hierarchy
12. /srv
It is a directory that contains
temporary files created by the system
and users.
Files under this directory are deleted
when the system is rebooted.
Linux File Structure & Hierarchy
13. /tmp
Secondary hierarchy for read-only user data;
contains the majority of (multi-)user utilities
and applications.
It contains:
• /usr/bin –binary files for user program.
• /usr/sbin –binary file for system admins.
• /usr/lib- libraries for usr/bin and usr/sbin
• /usr/local – programs we install from
source.
• /usr/src – holds Linux kernel
sources,header- files and documentation.
Linux File Structure & Hierarchy
14. /usr
/usr/bin contains binary files for user
programs.
Linux File Structure & Hierarchy
14.1 /usr/bin
/usr/sbin contains binary files for system
administrators.
Linux File Structure & Hierarchy
14.2 /usr/sbin
/usr/lib contains libraries for /usr/bin and
/usr/sbin
Linux File Structure & Hierarchy
14.3 /usr/lib
/usr/local contains users programs that
we install from source. For example, when
we install apache from source, it goes
under /usr/local/apache2
Linux File Structure & Hierarchy
14.4 /usr/local
/usr/src holds the Linux kernel sources,
header files, and documentation.
Linux File Structure & Hierarchy
14.5 /usr/src
• Contains information about the system
process.
• This is a pseudo filesystem that
contains information about the running
process.
• This is a virtual filesystem with text
information about system resources.
Linux File Structure & Hierarchy
15. /proc
It is a temporary filesystem (tmpfs) that
stores volatile runtime data.
Linux File Structure & Hierarchy
16. /run
ThankYou!!!

More Related Content

PPT
Basic linux architecture
Rohit Kumar
 
PPT
LinuxTraining_26_Sept_2021.ppt
muraridesai2
 
ODP
File system hiearchy
sritolia
 
PPTX
Tahir Ashraf [Linux file system herarchy].pptx
SayedtahirAshraf
 
PDF
File system discovery
DevMix
 
PDF
Course 102: Lecture 2: Unwrapping Linux
Ahmed El-Arabawy
 
DOCX
The linux file system structure
Teja Bheemanapally
 
PDF
Linux directory structure by jitu mistry
JITU MISTRY
 
Basic linux architecture
Rohit Kumar
 
LinuxTraining_26_Sept_2021.ppt
muraridesai2
 
File system hiearchy
sritolia
 
Tahir Ashraf [Linux file system herarchy].pptx
SayedtahirAshraf
 
File system discovery
DevMix
 
Course 102: Lecture 2: Unwrapping Linux
Ahmed El-Arabawy
 
The linux file system structure
Teja Bheemanapally
 
Linux directory structure by jitu mistry
JITU MISTRY
 

Similar to Lab 5 Linux File Structure and Hierarchy.pptx (20)

PPT
Linux fs structure (1)
E. Rahul Naidu
 
PDF
File system discovery
MOHAMED Elshawaf
 
PDF
Linux file
Duluth Markets
 
PDF
Linux Directory Structure
Kevin OBrien
 
PDF
File systems for Embedded Linux
Emertxe Information Technologies Pvt Ltd
 
DOCX
File system hierarchy standard
Teja Bheemanapally
 
DOCX
File system hierarchy standard
Teja Bheemanapally
 
PPTX
Week6 filesystem
Gagah Arifianto
 
PPT
Linux filesystemhierarchy
Dr. C.V. Suresh Babu
 
PPTX
Linux file system
Md. Tanvir Hossain
 
PDF
linuxfilesystem-180727181106 (1).pdf
ShaswatSurya
 
PDF
Linux course fhs file hierarchy standard
Khawar Nehal [email protected]
 
PPTX
Linux fundamentals
Raghu nath
 
PDF
Linux file system
Mohammad Reza Gerami
 
PDF
linux file system
AryaTadbir Network Designers
 
PPTX
Linux standard file system
Taaanu01
 
PPTX
Files and directories in Linux 6
Meenakshi Paul
 
PPT
Linux training
Parker Fong
 
PPTX
File system structure in linux
Sukkur IBA
 
PPT
Linux file system
Midaga Mengistu
 
Linux fs structure (1)
E. Rahul Naidu
 
File system discovery
MOHAMED Elshawaf
 
Linux file
Duluth Markets
 
Linux Directory Structure
Kevin OBrien
 
File systems for Embedded Linux
Emertxe Information Technologies Pvt Ltd
 
File system hierarchy standard
Teja Bheemanapally
 
File system hierarchy standard
Teja Bheemanapally
 
Week6 filesystem
Gagah Arifianto
 
Linux filesystemhierarchy
Dr. C.V. Suresh Babu
 
Linux file system
Md. Tanvir Hossain
 
linuxfilesystem-180727181106 (1).pdf
ShaswatSurya
 
Linux course fhs file hierarchy standard
Khawar Nehal [email protected]
 
Linux fundamentals
Raghu nath
 
Linux file system
Mohammad Reza Gerami
 
linux file system
AryaTadbir Network Designers
 
Linux standard file system
Taaanu01
 
Files and directories in Linux 6
Meenakshi Paul
 
Linux training
Parker Fong
 
File system structure in linux
Sukkur IBA
 
Linux file system
Midaga Mengistu
 
Ad

More from Ciceer Ghimirey (8)

PPTX
Classification-Support Vector Machines.pptx
Ciceer Ghimirey
 
PPTX
Machine Vision Concepts ,Application & Components.pptx
Ciceer Ghimirey
 
PPTX
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Ciceer Ghimirey
 
PPTX
Lab 3 -Linux Files, Directories and Basic Commands.pptx
Ciceer Ghimirey
 
PPTX
Install Linux OS in Virtual Box.pptx
Ciceer Ghimirey
 
PPTX
Install LAMP Stack in Linux Server OS and Hosting a Custom Domain .pptx
Ciceer Ghimirey
 
PPTX
Complete WordPress Setup (Description about Themes & Plugins Added)
Ciceer Ghimirey
 
PPTX
WordPress Introduction and WordPress Theme Installation Slides
Ciceer Ghimirey
 
Classification-Support Vector Machines.pptx
Ciceer Ghimirey
 
Machine Vision Concepts ,Application & Components.pptx
Ciceer Ghimirey
 
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Ciceer Ghimirey
 
Lab 3 -Linux Files, Directories and Basic Commands.pptx
Ciceer Ghimirey
 
Install Linux OS in Virtual Box.pptx
Ciceer Ghimirey
 
Install LAMP Stack in Linux Server OS and Hosting a Custom Domain .pptx
Ciceer Ghimirey
 
Complete WordPress Setup (Description about Themes & Plugins Added)
Ciceer Ghimirey
 
WordPress Introduction and WordPress Theme Installation Slides
Ciceer Ghimirey
 
Ad

Recently uploaded (20)

PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 

Lab 5 Linux File Structure and Hierarchy.pptx

  • 1. Topic : Linux File Structure and Hierarchy
  • 2. The Linux File Hierarchy Structure or the Filesystem Hierarchy Standard (FHS) defines the directory structure and directory contents in Unix-like operating systems. In FHS, • all files and directories appear under the root directory /, even if they are stored on different physical or virtual devices. Linux File Structure & Hierarchy
  • 3. It is a Primary Hierarchy.The root directory of the entire file system hierarchy. • Every single file and directory starts from the root directory. • The only root user has the right to write under this directory. • /root is the root user’s home directory, which is not the same as / Linux File Structure & Hierarchy 1. / or Root
  • 4. Essential command binaries that need to be available in single-user mode; for all users, e.g., cat, ls, cp. • Contains binary executables. • Commands used by all the users of the system are located here e.g. ps, ls, ping, grep, cp. Linux File Structure & Hierarchy 2. /bin
  • 5. Boot loader files, e.g., kernels, initrd. • Kernel initrd, vmlinux, grub files are located under /boot Linux File Structure & Hierarchy 3. /boot
  • 6. Essential device files, e.g. /dev/null. . • These include terminal devices, usb, or any device attached to the system. Linux File Structure & Hierarchy 4. /dev
  • 7. Host-specific system-wide configuration files. • Contains configuration files required by all programs. • This also contains startup and shutdown shell scripts used to start/stop individual programs. Linux File Structure & Hierarchy 5. /etc
  • 8. Host-specific system-wide configuration files. • Contains configuration files required by all programs. • This also contains startup and shutdown shell scripts used to start/stop individual programs. Linux File Structure & Hierarchy 6. /home
  • 9. Libraries essential for the binaries in /bin/ and /sbin/. Linux File Structure & Hierarchy 7. /lib
  • 10. It shows removable media such as CD-ROMs,USBs etc. Linux File Structure & Hierarchy 8. /media
  • 11. Temporary mount directory where sysadmins can mount filesystems. Linux File Structure & Hierarchy 9. /mnt
  • 12. Optional application software packages. Contains add-on applications from individual vendors. Linux File Structure & Hierarchy 10. /opt
  • 13. Essential system binaries, e.g., fsck, init, route. • Just like /bin, /sbin also contains binary executables. • The linux commands located under this directory are used typically by system administrator, for system maintenance purpose. Linux File Structure & Hierarchy 11. /sbin
  • 14. Site-specific data served by this system, such as data and scripts for web servers, data offered by FTP servers, and repositories for version control systems. Linux File Structure & Hierarchy 12. /srv
  • 15. It is a directory that contains temporary files created by the system and users. Files under this directory are deleted when the system is rebooted. Linux File Structure & Hierarchy 13. /tmp
  • 16. Secondary hierarchy for read-only user data; contains the majority of (multi-)user utilities and applications. It contains: • /usr/bin –binary files for user program. • /usr/sbin –binary file for system admins. • /usr/lib- libraries for usr/bin and usr/sbin • /usr/local – programs we install from source. • /usr/src – holds Linux kernel sources,header- files and documentation. Linux File Structure & Hierarchy 14. /usr
  • 17. /usr/bin contains binary files for user programs. Linux File Structure & Hierarchy 14.1 /usr/bin
  • 18. /usr/sbin contains binary files for system administrators. Linux File Structure & Hierarchy 14.2 /usr/sbin
  • 19. /usr/lib contains libraries for /usr/bin and /usr/sbin Linux File Structure & Hierarchy 14.3 /usr/lib
  • 20. /usr/local contains users programs that we install from source. For example, when we install apache from source, it goes under /usr/local/apache2 Linux File Structure & Hierarchy 14.4 /usr/local
  • 21. /usr/src holds the Linux kernel sources, header files, and documentation. Linux File Structure & Hierarchy 14.5 /usr/src
  • 22. • Contains information about the system process. • This is a pseudo filesystem that contains information about the running process. • This is a virtual filesystem with text information about system resources. Linux File Structure & Hierarchy 15. /proc
  • 23. It is a temporary filesystem (tmpfs) that stores volatile runtime data. Linux File Structure & Hierarchy 16. /run