Site icon NetworkHunt

Linux File Hierarchy Structure Explained: From Root to Home

What are the Different Types of Files in Linux?

  1. General Files – It is also called ordinary files. It may be an image, video, program, or simple text file. These types of files can be in ASCII or Binary format. It is the most commonly used file in the Linux system.
  2. Directory Files – These types of files are a warehouse for other file types. It may be a directory file within a directory (subdirectory).
  3. Device Files – In a Windows-like operating system, devices like CD-ROM, and hard drives are represented as drive letters like F: G: H whereas in the Linux system devices are represented as files. As for example, /dev/sda1, /dev/sda2, and so on.

What is the Linux File Hierarchy Structure?

In Linux everything is a file, files are file, directories are files, even devices are files. Thus, files must be managed properly to make the OS work efficiently.

The Linux File Hierarchy Structure (FHS) is a standardized system that defines how files and directories are organized within Linux and other Unix-like operating systems. The Linux Foundation maintains the Linux File Hierarchy Structure.

Directories in Linux File Hierarchy Structure (FHS)-

1. Root Directory “(/)”
2. /bin
3. /boot
4. /dev
5. /etc
6. /home
7. /lib
8. /media
9. /mnt
10. /opt
11. /proc
12. /root
13. /run
14. /srv
15. /sys
16. /tmp
17. /usr
18. /var
19 /sbin

These are the most commonly found and widely used directories in the Linux File Hierarchy System, but there can be more directories depending on the subsystems/applications installed and the Operating System (Distro) used.

Exit mobile version