Finding duplicate files on your Mac takes either superhuman patience, or a duplicate finder app. In this post, we’ll go over both manual and app-powered ways to remove all the useless copies that waste your disk space.
So, here’s how you can find and delete duplicate files on Mac:
Jul 08, 2020 Search titles only. By: Search Advanced search. #duplicates data valiadation duplicates; S. Sudhank New Member. Joined Jul 8, 2020 Messages 1 Office Version 2019 Platform MacOS Today at 8:39 AM #1 Hello. It has a Robust Search Engine that compares the files and searches for the duplicates. Be it photos, videos, audio files or any archive folder, Duplicate Detective can locate any replicas. It filters the files by size, name, date etc. And the user has the option of reducing. Gemini can also scan your iTunes and iPhoto library for duplicates. If you’re willing to pay $10 for a better interface, Gemini seems like a good bet. There are other, similarly polished duplicate-file-finders in the Mac App Store, too — but Apple flags this one as an Editors’ Choice, and we can see why.
- Use a duplicate file finder app
- Find duplicates with a Terminal command
- Hand-pick the copies using Smart Folders in Finder
There’s a chance you don’t feel like digging through all your folders or messing with the command line in pursuit of duplicates. If that’s the case, just get yourself an app. We recommend Gemini 2: The Duplicate File Finder — it lets you scan your whole disk, review the duplicates, and delete them with a click of a button. Or, if you’re ready to get your hands dirty, there are still the manual options, and we’ll take a closer look at them now.
How to find duplicate files on Mac
Over time your Mac is going to fill up and run out of storage space. And most likely, it will fill up with duplicates that take up all of your valuable space. Sure, you can try to sort through all of your files, searching for those duplicate documents, photos, and music files. But if you’re already at the point of your hard drive being full, that means you’ve got a lot of files to sift through. And it’s going to take you a very long time to go through them one-by-one.
Get rid of duplicate files and folders using Gemini 2
There’s a ton of duplicate finder tools out there, but we’ll take Gemini 2 as an example, because we’re 100% sure it works. So, let’s say you want to scan all folders on your Mac for duplicates. Here’s what you do:
- Download Gemini 2 and open it.
- Add your Home folder or drag-and-drop it into the app. Hint: in case you don’t know where the Home folder is, just enter your user name in Spotlight search to find it.
- Hit Scan for Duplicates.
When the scan is over (which doesn’t take long), you get two options: Review Results and Smart Cleanup.
Smart Cleanup means you’ll automatically delete all duplicate files, and the originals will stay where they are. It’s called smart, because the app knows which files are duplicates and makes sure at least one copy of a file — the original — remains on your Mac.
If you want to make sure you remove the right duplicate files, hit Review Results. This will open a window with all your duplicates listed. You can preview files (even play music and videos), see how they differ, and select them for removal the way you want. When you’re done, hit Remove.
Search For Duplicates In Excel
That’s pretty much it: Gemini 2 will delete duplicate files in your Photos, Downloads, Mail Downloads, iTunes, and all the other locations on your disk. By far, it’s the easiest way to find all duplicates on a Mac. Download Gemini 2 and you’ll see how simple it is.
Find duplicate files with a Terminal command.
Macos Search For Duplicates Windows 7
Before we dig deeper into this one, make sure you know your way around Mac’s Terminal, because you might mess things up with it. We’ve tested the command below and nothing bad happened, but just be careful what you type into the command line.
So, here’s how you search for duplicate files with Terminal:
- Find Terminal in the Utilities folder or using Spotlight search and open it.
- Navigate to the folder you want to scan with the cd command. For example, if you want to scan Downloads, type in cd ~/Downloads and hit Enter.
- Copy and paste this command:
find . -size 20 ! -type d -exec cksum {} ; | sort | tee /tmp/f.tmp | cut -f 1,2 -d ‘ ‘ | uniq -d | grep -hif – /tmp/f.tmp > duplicates.txt and hit Enter.
This will create a text file in the folder you’ve specified, with a list of your duplicates inside. But there are two “buts” here: first, Terminal overlooks a lot of duplicates, and second, you’ll still need to find those duplicate files and sift through them to separate the copies from the originals. So, this command is more like a crystal ball: it gives you hints, but you still have to go and do stuff yourself. Which brings us to the third option, where you hardly have to do anything at all.
Sometimes files won’t be flagged as duplicates because they have slightly different file names. But every file has what’s called an md5 hash, which is a unique identifier that stays with the file. So even if you move or rename a file, it’s md5 hash will remain the same.
Similar to the Terminal command above, you can generate a list that shows the md5 tag to verify all of the duplicates in a particular folder. Follow the steps below to create that list.
- Open Terminal from the Utilities folder.
- For this example, we’ll scan the Documents folder. Type into the Terminal window: ~/Documents.
- Copy and paste this code: find ./ -type f -exec md5 {} ; | awk -F '=' '{print $2 't' $1}' | sort | tee duplicates.txt and then hit enter.
- Then, open a Finder window and navigate to your Documents folder.
- Open the Documents.txt file.
This generates a list of all of the files in the folder you’ve specified, but you’ll at least be able to see the md5 tags to know which files are copies of each other.
How to find duplicates on Mac manually
The truth is duplicate files can live anywhere on your hard drive, which makes finding them that much trickier. But thanks to a feature in Finder called Smart Folders, you can narrow your search down based on specific criteria. Say you want to search all of the documents on your Mac, then you’d follow these steps:
- Open a new Finder window.
- Click File > New Smart Folder.
- Make sure This Mac is selected.
- In the top-right corner, click +.
- From the first drop-down menu, select Kind.
- In the second drop-down, choose Documents.
- Click Save.
- A pop-up window will come up, letting you name the folder and choose where to save the Smart Folder.
- From there, you can see all of your documents. Click to order the files by either name, size, or date created to help you quickly spot duplicates.
- Select the files you want to delete.
- Right-click (or hold down Command and click) and then click Move to Trash.
While using Smart Folders is a lot faster than hunting through your entire hard drive for duplicate files, it still requires a bit of patience. Manually going through each of your files one-by-one can take some time, even after you’ve narrowed them down.
Find duplicate files in specific folders in Finder
You can also use Smart Folders to look for duplicates within specific folders. This is particularly helpful in instances when you have multiple folders in a folder. To set up a Smart Folder that searches a specific folder:
- With a new Finder window open, go to the folder you want to search.
- Click File > New Smart Folder.
- In the Search bar at the top of the window, you’ll see This Mac and the name of your folder. Click the folder name.
- Then, click + in the top-right corner.
- Set your other search criteria.
- Click Save.
- From the pop-window, name your Smart Folder and choose where to save it.
- Organize your files by name, size, or date created to help you see the duplicates.
- Select the files you want to delete.
- Right-click (or hold down Command and click) on one of the files and then click Move to Trash.
Find duplicates of specific file types in Finder
Because you change the search criteria with each Smart Folder, that means you can search for specific types of files or files of a certain size. To create a Smart Folder for a certain type of file, like pictures, you can open a new Finder window and follow these steps:
- Click File > New Smart Folder.
- Then, in the top-right corner, click +.
- From the first drop-down menu, select Kind.
- Choose Image from the second drop-down.
- Click Save.
- Then, give your Smart Folder a name and choose where you want to save it.
- After it’s saved, you can select the duplicate files, right-click or command-click, and click Move to Trash.
Find duplicates by file sizes in Finder
If you want to only search for files by their size, which is particularly helpful to get rid of larger duplicates, do the following:
- Open a Finder window.
- In the top right, click +.
- Click on the first drop-down to choose File Size. If you don’t see it, click Other… and then search for size, to add it to the menu.
- Set your file size criteria.
- Then you can click Save, name your folder and choose where it’s saved.
- Once your Smart Folder is created, you can select the duplicates, right-click or command-click, and then click Move to Trash.
Find duplicate pictures in your Photos library
You move a bunch of new photos onto your Mac, import them into Photos, and start sorting them out. What you probably don’t know is that all of those pics now exist in two copies: one in the initial folder (say, Documents), and one in Home > Pictures > Photos Library. So, if you save photos onto your Mac first, and then import them into Photos, every single pic is duplicated. That’s where gigabytes of your disk space go.
Now, how do you find these duplicate photos and get rid of them? Depends on how much you rely on Photos for viewing and organizing your pics. If you never liked the app anyway and have backups of all pics in other folders, just go ahead and empty the Photos library. Remember two things here, though:
- Delete your pics in Photos only when you’re 100% sure there are copies of them in other folders. Would be a shame to lose memorable shots.
- When you delete duplicate files in Photos, they are not removed — just moved to a Recently Deleted folder. This means they still exist on your disk, so if your goal is to free up disk space, don’t forget to empty that Recently Deleted folder.
In case you use Photos as your primary app for images, keep in mind that it only displays files stored in Home > Pictures > Photos Library. So, to keep using Photos for your pics, you’ll have to remove those other copies that are stored elsewhere. Here’s how you can find them:
- In Photos, open the Photos tab to see all your pics sorted by date.
- In Finder, open All My Files to view all your pics in bulk, not in a dozen individual folders.
- Sort the files by Date Created, so that your pics in Finder are listed more or less in the order they’re listed in Photos.
- Now comes the tedious part. Take a group of pics in Photos, created within the same day — say, April 17, 2015. Go to Finder, spot the 2015 section, and find that identical group of pics (they will be located together, so you just need to look carefully).
Repeat step 4 for all the pictures you have in your Photos library. That way, you’ll find and remove the duplicate photos that are stored in other locations, and keep only the pics in your Photos library.
As you may have guessed, this is going to take a while, especially given that All My Files will include documents, videos, and other files you have, not just your photos. So, to save you a few hours, we suggest you use a duplicate finder app for the job. Gemini 2, for example, easily finds duplicate photos and shows you where each of them is located. It even autoselects the duplicate pics that are stored outside your Photos library, so all you need to do is hit Remove, and they’ll be gone. You can download Gemini 2 for free and see how it works.
How to find duplicates in Mail Downloads
Here’s a common scenario: a colleague emails you a document, and you open the attachment in Mail to take a look at it. You’re going to need this file, so you download it onto your Mac for safe keeping. No duplicates, nothing to talk about here. Right?
Not exactly. See, the Mail app has quietly downloaded this attachment the moment you opened it, and stashed it in its very own downloads folder. So once again, you now have two copies of the exact same file on your Mac.
The Mail Downloads folder is not what you’d call “intuitively located”: to access it, you need to know where to look. Do the following to find it:
- Open Finder.
- In the Menu bar, click Go > Go to Folder…
- Type this address:
~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads
and hit Go.
This will reveal the folder you’re looking for, so open it and look through the contents. In this case, you don’t even have to compare them with the contents of your other folders: everything in here is simply local copies of the attachments you’ve opened. They are downloaded by Mail just so attachments open faster, and Mail can re-download them any time from your emails. So, even if these files don’t have duplicate counterparts somewhere else on your Mac, they’re pretty much useless for you. Make sure there’s nothing you would miss, and empty the folder altogether.
Smart Folders are a great way to search by file name or file type across your entire Mac or even within specific folders. This feature helps you organize and view your files so you can more easily spot duplicates, but it’s not without its flaws. You’re still left to delete files manually, which leaves room for errors, and that’s not to mention just how painstakingly slow it can be to delete files one at a time.
Your other option for finding and deleting duplicates is to use the app, Gemini 2. It will quickly scan your entire hard drive or individual folders, presenting you with the duplicate files to review. Or you can even choose to use the Smart Cleanup feature, which will automatically delete duplicates and leave the original files in their place. It really can’t get any easier than that.
Macos Search For Duplicates Windows 10
Hopefully, this article helps you clean up your Mac and remove those sneaky duplicate files that are eating up all of your storage space.