RightSignal
1 of 4

Your RightSignal

Concept of the day1 / 3

Copy-on-write

The concept

Why duplicating a huge file on a Mac can finish instantly

Copy-on-write means a copy does not duplicate any data at first. The original and the copy point at the same blocks on disk or in memory, and a block is duplicated only when one side tries to change it.

Duplicate a 10 GB video in Finder on an Apple APFS drive and it appears at once. The new file is just a fresh name pointing at the same blocks. Only when you edit part of one file does the system write new blocks for the changed part.