Tagged articles
10 articles
Page 1 of 1
Top Architect
Top Architect
Jan 19, 2023 · Fundamentals

Understanding Sparse Files and Why cp Can Copy a 100 GB File Instantly on Linux

This article explains how Linux file systems represent file size versus actual disk usage, demonstrates the difference between Size and Blocks using du and stat, describes inode and multi‑level block indexing, and shows why copying a sparse 100 GB file with cp finishes in a fraction of a second.

block indexingcp commandfile system
0 likes · 12 min read
Understanding Sparse Files and Why cp Can Copy a 100 GB File Instantly on Linux
Top Architect
Top Architect
May 19, 2022 · Fundamentals

Understanding Sparse Files and Inode Block Indexing in Linux File Systems

The article explains why a 100 GB file can be copied in under a second by examining the difference between logical file size and physical block usage, demonstrating sparse file behavior, inode structure, direct and indirect block indexing, and how these mechanisms affect copy performance on Linux.

block indexingcp commandfile system
0 likes · 11 min read
Understanding Sparse Files and Inode Block Indexing in Linux File Systems
Java High-Performance Architecture
Java High-Performance Architecture
Oct 25, 2021 · Fundamentals

Why cp Copies a 100GB File Instantly: Sparse Files & Inode Indexing Explained

A colleague was amazed when the cp command copied a 100 GB file in less than a second, prompting an investigation that reveals the difference between logical file size and physical block usage, the role of inodes, direct and indirect block indexing, and how sparse files make such copies appear instantaneous.

Storage Fundamentalsblock indexingcp command
0 likes · 12 min read
Why cp Copies a 100GB File Instantly: Sparse Files & Inode Indexing Explained
Programmer DD
Programmer DD
Oct 10, 2021 · Fundamentals

Why Does cp Copy a 100 GB Sparse File in Under a Second?

This article explains why copying a seemingly 100 GB file with the cp command finishes almost instantly by exploring sparse files, the difference between file size and physical block usage, inode structures, multi‑level block indexing, and how modern file systems efficiently manage storage.

Storage Fundamentalscp commandfile system
0 likes · 12 min read
Why Does cp Copy a 100 GB Sparse File in Under a Second?