Linux File System Explained for Beginners.

Understanding the Linux file system is crucial for anyone who wants to navigate and manage a Linux-based system effectively. Unlike Windows, which uses drive letters like C: and D:, Linux organizes everything under a single-rooted hierarchical structure starting from / (root).

In this guide, we’ll explore:

  • The structure of the Linux file system
  • Popular Linux file systems (ext4, Btrfs, XFS, etc.)
  • Their authors, history, advantages, and limitations

The Linux Directory Structure

Before we dive into specific file systems, let’s understand the core directories under the Linux root (/):

DirectoryPurpose
/Root directory (everything begins here)
/binEssential user binaries (e.g., ls, cp)
/bootBoot loader files (e.g., GRUB)
/devDevice files (e.g., /dev/sda)
/etcConfiguration files
/homeUser home directories
/libEssential shared libraries
/mediaRemovable media mount points
/mntTemporary mount point
/optOptional or third-party software
/procVirtual filesystem for system processes
/rootHome directory for root user
/runRuntime variable data
/sbinSystem binaries (admin tools)
/srvData for services (e.g., FTP, HTTP)
/tmpTemporary files
/usrUser programs and utilities
/varVariable files like logs, cache, etc.

Popular Linux File Systems

Let’s now explore the major file systems used in Linux, along with their history, creators, benefits, and drawbacks.

ext (Extended File System)

  • Created by: Rémy Card
  • Released: April 1992
  • Purpose: First file system specifically designed for Linux
  • Replaced by: ext2

Summary:

  • Basic functionality
  • No journaling
  • Largely obsolete

ext2 (Second Extended File System)

  • Created by: Rémy Card
  • Released: January 1993

Advantages:

  • Improved performance and reliability over ext
  • Large file and volume support (up to 4TB)
  • No journaling (less disk wear for flash storage)

Drawbacks:

  • No journaling → longer recovery after a crash

ext3 (Third Extended File System)

  • Created by: Stephen Tweedie
  • Released: November 2001

Advantages:

  • Journaling (helps recover after a crash)
  • Backward compatible with ext2
  • Stable and widely supported

Drawbacks:

  • Slower than newer file systems
  • Limited scalability

ext4 (Fourth Extended File System)

  • Created by: Theodore Ts’o
  • Released: 2008 (stable in 2009)

Advantages:

  • Backward compatible with ext3 and ext2
  • Support for volumes up to 1 exabyte
  • Journaling with checksums
  • Delayed allocation for better performance

Drawbacks:

  • Not copy-on-write (COW)
  • Limited snapshot and volume management compared to Btrfs or ZFS

Most popular file system today for desktops and servers.

Btrfs (B-tree File System)

  • Created by: Oracle Corporation
  • Released: 2009 (still under active development)

Advantages:

  • Modern file system with snapshot, compression, and RAID support
  • Copy-on-write (COW)
  • Built-in volume management and checksumming

Drawbacks:

  • Still considered experimental for certain enterprise workloads
  • Performance may lag under specific conditions

Used by Fedora, openSUSE, and others.

XFS

  • Created by: Silicon Graphics, Inc. (SGI)
  • Released: 1994 (open-sourced in 2000)

Advantages:

  • High performance, especially with large files
  • Journaling and defragmentation tools
  • Scalability (supports volumes in petabytes)

Drawbacks:

  • Slower performance for small files
  • No file-level compression or encryption

Default in RHEL / CentOS 7+

ZFS (Zettabyte File System)

  • Created by: Sun Microsystems
  • Released: 2005
  • Now maintained by: OpenZFS project

Advantages:

  • Advanced features: snapshots, compression, self-healing
  • Copy-on-write
  • RAID-Z for redundancy

Drawbacks:

  • More RAM required
  • Licensing conflicts (CDDL vs GPL) prevent it from being in the Linux kernel directly

Popular in FreeBSD, TrueNAS, and some Linux distros (via kernel modules)

Summary Comparison Table

File SystemYearCreatorJournalingMax File SizeUse Case
ext21993Rémy Card4TBFlash drives, legacy systems
ext32001Stephen Tweedie2TBGeneral desktop/server
ext42008Theodore Ts’o16TB+Most Linux desktops/servers
Btrfs2009Oracle16EiBAdvanced systems, snapshots
XFS1994SGI8EiBLarge file operations
ZFS2005Sun Microsystems16EiBData integrity, storage arrays

The Linux file system landscape is rich and versatile. For most users, ext4 offers an excellent balance of performance and reliability. However, depending on your needs—such as running SSDs, using snapshots, or handling enterprise-level data—options like Btrfs, XFS, or ZFS may offer superior features.

Choosing the right file system depends on:

  • Hardware (e.g., SSD or HDD)
  • Performance needs
  • Data integrity requirements
  • Backup and snapshot strategy
Scroll to Top