Tag

cp command

1 views collected around this technical thread.

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.

InodeLinuxblock indexing
0 likes · 12 min read
Understanding Sparse Files and Why cp Can Copy a 100 GB File Instantly on Linux
Top Architect
Top Architect
Sep 2, 2022 · Fundamentals

Understanding Sparse Files and Multi‑Level Inode Indexing in Linux File Systems

The article explains why copying a seemingly 100 GB file with the cp command finishes instantly by analyzing file size versus allocated blocks, sparse file concepts, inode structures, direct and indirect block indexing, and how Linux file systems manage storage space efficiently.

InodeLinuxcp command
0 likes · 11 min read
Understanding Sparse Files and Multi‑Level Inode Indexing in Linux File Systems
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.

InodeLinuxblock indexing
0 likes · 11 min read
Understanding Sparse Files and Inode Block Indexing in Linux File Systems
Architect's Tech Stack
Architect's Tech Stack
Nov 6, 2021 · Fundamentals

Why cp Can Finish Instantly: Understanding Inodes, Block Indexing and Sparse Files

The article explains how a Linux file can appear to be 100 GB yet copy in under a second because the file system uses inodes, direct and indirect block pointers, and sparse allocation, separating logical size from actual physical storage.

InodeLinuxblock indexing
0 likes · 10 min read
Why cp Can Finish Instantly: Understanding Inodes, Block Indexing and Sparse Files