Linux Tutorial — Part 3: Linux File System Structure

In this part, we will understand how Linux organizes files internally. This is one of the most important Linux concepts. Without this knowledge, Linux commands feel confusing and dangerous.

The Linux File System Philosophy

Linux follows a simple but strict rule: everything is a file.

Hardware devices, configuration, logs, and even running processes are represented using files.

The Root Directory (/)

Linux does not use drive letters like Windows (C:, D:). Everything starts from a single root directory:

/

All files and folders exist under this root. There is no concept of multiple independent roots.

Important Linux Directories (Must Know)

/bin — Essential Commands

Contains essential binary commands like:

These commands are required for the system to function.

/etc — Configuration Files

Stores system-wide configuration files. No executable programs are stored here.

Editing files in /etc directly affects system behavior.

/home — User Directories

Each user has a personal directory inside /home.

/home/username

This is where personal files, downloads, and settings live.

/root — Root User Home

This is the home directory of the administrator (root user).

Normal users should not work here.

/var — Variable Data

Contains files that change frequently:

Server logs are usually stored in /var/log.

/usr — User Programs

Stores applications, libraries, and documentation.

Despite the name, this directory is shared by all users.

/tmp — Temporary Files

Used for temporary data. Files here are often deleted automatically after reboot.

/dev — Devices

Hardware devices are exposed as files here.

This allows Linux to treat hardware uniformly.

/proc — Process Information

A virtual file system. Contains live information about running processes and kernel state.

Why This Structure Matters

Linux commands assume you understand this layout. Deleting or modifying the wrong directory can break the system.

Golden Rule

Never delete files unless you understand:

In the next part, we will learn basic Linux commands and how to safely navigate the file system.

Next: Basic Linux Commands →
Disclaimer:
This tutorial is for educational purposes only. Do not modify system files without understanding their purpose.