01What a true duplicate is
Two files are duplicates if they have exactly the same content. The same name is not enough (two “report.pdf” files can differ), and different names prove nothing (“photo.jpg” and “photo (1).jpg”). The reliable method is to compare a checksum computed from the content: if it matches, the content does.
On Mac and Linux, then on Windows (PowerShell):
shasum -a 256 file1 file2Get-FileHash .\file1, .\file202Photos
Never remove files from the Photos library by hand. On a Mac (macOS Ventura and later), the Photos app shows a Duplicates album under Utilities, which merges the copies and keeps the best one. On iPhone, the same album exists in the Photos app. On Windows and Android, use the app that manages your photos or Klystor for Android.
03Other files
On Linux, fdupes (package of the same name) compares content and lists groups of duplicates without deleting anything:
fdupes -r ~/Documents ~/DownloadsOn Mac and Windows, no built-in tool looks for duplicate documents. In Klystor, the Duplicates screen (Klystor Pro) compares each file’s content with a BLAKE3 checksum, groups identical copies and lets you choose the one to keep; the others go through the Trash.
04Choosing the copy to keep
- keep the copy filed in the right place (Documents, the project folder) rather than the one in Downloads;
- be careful with synced folders (iCloud Drive, OneDrive, Dropbox): a deletion there also reaches your other devices;
- a duplicate inside a backup or an archive is intentional: leave it;
- delete through the Trash, and empty it once you are sure.
What not to do
- deleting duplicates spotted only by their name or size;
- bulk-deleting inside an app’s or the system’s folders: some identical files are needed in several places there;
- confusing “near-identical” photos (bursts, edits) with true duplicates: those are sorted by eye.