Tag

sparse file

0 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.

Inodeblock indexingcp command
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.

Inodecp commandfile system
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.

Inodeblock indexingcp command
0 likes · 11 min read
Understanding Sparse Files and Inode Block Indexing in Linux File Systems
IT Architects Alliance
IT Architects Alliance
May 15, 2022 · Fundamentals

Why cp Can Copy a 100 GB File Instantly: Sparse Files and File System Mechanics

This article explains why the Linux cp command appears to copy a 100 GB file in less than a second by exploring sparse files, the distinction between file size and allocated blocks, inode structure, multi‑level block indexing, and how these concepts enable fast copying of seemingly huge files.

CPInodeblock indexing
0 likes · 11 min read
Why cp Can Copy a 100 GB File Instantly: Sparse Files and File System Mechanics
Efficient Ops
Efficient Ops
Jan 11, 2022 · Operations

Why Does du Show 9 GB While ls Shows 100 GB? Understanding Linux Sparse Files

This article explains why Linux utilities like du and ls can report dramatically different file sizes, introduces the concept of sparse files, and shows practical commands to identify and correctly handle them on Unix-like systems.

System Administrationdufilesystem
0 likes · 5 min read
Why Does du Show 9 GB While ls Shows 100 GB? Understanding Linux Sparse Files
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.

Inodeblock indexingcp command
0 likes · 10 min read
Why cp Can Finish Instantly: Understanding Inodes, Block Indexing and Sparse Files
Architecture Digest
Architecture Digest
Oct 26, 2021 · Fundamentals

Why cp Can Copy a 100 GB File Instantly: Understanding Sparse Files and Inode Block Indexing

The article explains why the Linux cp command appears to copy a 100 GB file in less than a second by exploring sparse files, the difference between logical file size and physical block allocation, and how inode direct and indirect indexing enable efficient storage and fast copying.

Inodecp commandfile system
0 likes · 11 min read
Why cp Can Copy a 100 GB File Instantly: Understanding Sparse Files and Inode Block Indexing
Efficient Ops
Efficient Ops
Oct 12, 2021 · Fundamentals

Why cp Copies a 100GB File Instantly: Sparse Files and Inode Basics

An unexpected fast copy of a 100 GB file using the cp command reveals the concept of sparse files, where the logical size differs from physical disk usage, and explains how file systems employ inodes, block allocation, and multi‑level indexing to manage storage efficiently.

Inodefile systemlinux
0 likes · 11 min read
Why cp Copies a 100GB File Instantly: Sparse Files and Inode Basics