Skip to main content

Command Palette

Search for a command to run...

Understanding Linux File System Structure

Updated
โ€ข2 min readโ€ขView as Markdown
Understanding Linux File System Structure
H
Aspiring software engineer with a strong interest in AWS, cloud computing, and web technologies. Focused on learning new skills, building practical projects, and growing as a technology professional.

During my learning at Millennium Software Solutions, I learned about the Linux file system structure. Linux organizes files and folders in a hierarchical structure that starts from the root directory represented by /.

All files, folders, programs, and devices are connected under this root directory.

Here are the important Linux directories I learned:

๐Ÿ”น /root

This is the home directory of the root user (administrator).
The root user has full permissions in the Linux system.

๐Ÿ”น /home

This directory contains home folders of normal users.
Each user gets a separate folder inside /home.

๐Ÿ”น /bin

The /bin directory stores essential binary commands used by all users.

Examples:

  • ls

  • cp

  • mv

  • cat

These commands are required for basic Linux operations.

๐Ÿ”น /sbin

This directory contains system administration commands mainly used by the system administrator.

Examples:

  • fdisk

  • reboot

  • shutdown

๐Ÿ”น /dev

The /dev directory contains device files.
Linux treats hardware devices like files.

Examples:

  • Hard disks

  • USB devices

  • Printers

๐Ÿ”น /etc

This directory stores system configuration files.

Examples:

  • User account configurations

  • Network settings

  • Application configurations

๐Ÿ”น /usr

The /usr directory contains user applications, libraries, and software packages.

It stores:

  • Installed programs

  • Documentation

  • Libraries

๐Ÿ”น /var

The /var directory stores variable data files that change continuously.

Examples:

  • Log files

  • Cache files

  • Mail files

๐Ÿ”น /opt

This directory is used for optional or third-party software installations.

๐Ÿ”น /mnt

The /mnt directory is used for temporarily mounting file systems or storage devices.

๐Ÿ”น /media

This directory is used for removable media devices such as:

  • USB drives

  • CDs

  • DVDs


Conclusion

The Linux file system structure helps organize system files, user data, applications, and hardware devices properly. Understanding these directories is very important for Linux administration, DevOps, cloud computing, and server management.

I learned these concepts during my training at Millennium Software Solutions, which helped me understand Linux system organization in a practical way.

More from this blog