수. 7월 23rd, 2025

Linux Filesystem Hierarchy
Linux’s organized directory structure (Credit: Wikipedia)

What is a Filesystem?

A filesystem is like a library’s organization system for your computer. It controls how data is stored and retrieved on your disk. Linux uses a hierarchical, tree-like structure starting from the root directory (/), with all other directories branching out from it.

Key Directory Structure

Here’s a simplified overview of essential directories:

  1. / (Root)
    The base of the entire filesystem. Every file/directory starts here.

  2. /bin (Binaries)
    Contains essential command-line tools like ls, cp, and bash.
    Bin Folder Icon

  3. /home
    Personal folders for users. Your documents, downloads, and settings live here.
    (e.g., /home/alex)

  4. /etc (Configuration Files)
    Stores system-wide settings (network config, user accounts, etc.).

  5. /var (Variable Data)
    Holds changing data like logs (/var/log) and website files (/var/www).

  6. /dev (Devices)
    Contains hardware device files (e.g., /dev/sda for your disk).

  7. /tmp (Temporary Files)
    Stores short-lived files deleted on reboot.


Popular Linux Filesystem Types

Type Best For Features
ext4 General use Default on most distributions
XFS Large files High performance for big data
Btrfs Snapshots Built-in backup/restore features

Basic Navigation Commands

Try these in your terminal:

pwd     # Show current directory
ls      # List files in current folder
cd /etc # Switch to the /etc directory
tree -L 2 # Display directory structure (install with `sudo apt install tree`)

Terminal Commands Example
Basic Linux terminal commands (Credit: How-To Geek)

Why This Structure?

Linux’s organization prevents chaos by separating system files (/bin, /etc) from user data (/home). This improves security, makes debugging easier, and allows efficient system updates.

💡 Tip: Use man hier in your terminal to explore the full directory hierarchy documentation!

Ready to explore? Open your terminal and start navigating with cd and ls! Remember: Linux won’t let you accidentally delete critical system files without root permissions 😊.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다