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
LinuxTraining_26_Sept_2021.ppt
PPT
Basic linux architecture
PPTX
Tahir Ashraf [Linux file system herarchy].pptx
PPT
Linux fs structure (1)
PPTX
Linux standard file system
DOCX
File system hierarchy standard
DOCX
File system hierarchy standard
PDF
Linux file
LinuxTraining_26_Sept_2021.ppt
Basic linux architecture
Tahir Ashraf [Linux file system herarchy].pptx
Linux fs structure (1)
Linux standard file system
File system hierarchy standard
File system hierarchy standard
Linux file

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

PPTX
12 introduction to Linux OS
PDF
12-introductiontolinuxos-190907073928
ODP
File system hiearchy
PDF
File system discovery
PPTX
Files and directories in Linux 6
PDF
File system discovery
DOCX
The linux file system structure
PPT
managing-the-linux-file-system_suse_.ppt
PPT
managing-the-linux-file-system________________________
PPT
Linux administration classes in mumbai
PPTX
linux fundamentals basic commands prepration
PDF
linuxfilesystem-180727181106 (1).pdf
PPTX
Linux file system
PDF
Lesson 2 Understanding Linux File System
PPT
linux-lecture1.ppt
PDF
kali linux operating system.pdf it's is help to collage persentation on kali ...
PDF
Linux directory structure by jitu mistry
PPTX
unit-1key fetures of linux of destubtions.pptx
PPT
linux-file-system01.ppt
PPTX
Linux fundamentals
12 introduction to Linux OS
12-introductiontolinuxos-190907073928
File system hiearchy
File system discovery
Files and directories in Linux 6
File system discovery
The linux file system structure
managing-the-linux-file-system_suse_.ppt
managing-the-linux-file-system________________________
Linux administration classes in mumbai
linux fundamentals basic commands prepration
linuxfilesystem-180727181106 (1).pdf
Linux file system
Lesson 2 Understanding Linux File System
linux-lecture1.ppt
kali linux operating system.pdf it's is help to collage persentation on kali ...
Linux directory structure by jitu mistry
unit-1key fetures of linux of destubtions.pptx
linux-file-system01.ppt
Linux fundamentals
Ad

More from Ciceer Ghimirey (8)

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

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Spectroscopy.pptx food analysis technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
KodekX | Application Modernization Development
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MIND Revenue Release Quarter 2 2025 Press Release
20250228 LYD VKU AI Blended-Learning.pptx
Spectral efficient network and resource selection model in 5G networks
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
sap open course for s4hana steps from ECC to s4
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
Empathic Computing: Creating Shared Understanding
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Spectroscopy.pptx food analysis technology
Review of recent advances in non-invasive hemoglobin estimation
KodekX | Application Modernization Development
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

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