Duplicates are essentially useless, which means they’re top candidates for a quick cleanup, including apps, photos, videos, or text files. Thanks to third-party apps, you can harness automation and tools to streamline the process or simply use built-in features on specific apps to delete duplicates manually.
I’ll be showing you how to get rid of duplicate files so you can save space for items that matter.
Automatically remove duplicates
With Gemini, finding and removing duplicate files on your Mac takes a matter of seconds. Available on Setapp.
Try free Security-testedMacs don’t typically duplicate files on purpose. Rather, it’s the user’s actions that cause files to duplicate. Let’s use my habits as an example.
There have been times when I’ve:
- Downloaded images or files multiple times by double-clicking by mistake.
- Downloaded an email attachment multiple times.
- Created backups of certain files or folders more than once.
- Copied and pasted files to different locations.
Had automatic backups that generated multiple of the same file.
Even if you’re a more careful computer user than I am, duplicate files can still happen, and they’re certainly worth removing.
Find and remove duplicate files on your Mac in seconds
There are multiple ways to remove duplicate files on a Mac, and I’ve summed them all up in a general table below:
I want to delete duplicates | Difficulty level | How to do this | |
---|---|---|---|
Using third-party apps | Easy | Use Gemini, CleanMyMac, or Disk Drill | |
Via Terminal | Hard | Use the cd ~/[folder name] command and type find ./ -type f -exec md5 {} \; | awk -F '=' '{print $2 "\t" $1}' | sort | tee duplicates.txt. | |
In Finder | Moderate | Open Finder> New Smart Folder > Search for duplicates. | |
In Photos | Easy | Go to Photos >Utilities > Duplicates. | |
In Mail | Moderate | Open Finder > Go > Go to Folder > Type ~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads. | |
In Messages | Easy | Messages > Copy content > Paste it in the Search bar. Open Finder > Go > Go to Folder > Type ~/Library/Messages/Attachments. |
What is the easiest way to find duplicate files?
The fastest and simplest way to perform a duplicate file search is by using dedicated duplicate file finders, as they’re made to scour your entire disk (or at least large sections of it) and detect these duplicates.
Gemini: Get alerts on duplicates and similar files
One of them is Gemini, a duplicate Mac cleaner that locates both similar and duplicate files using a one-of-a-kind smart algorithm. While it can wipe out these files in one click, you can also go through the visual results and select and group them yourself. Through AI, Gemini can also study what sort of files you’ve chosen for removal in past scans and upgrade its algorithm accordingly.
Performing a scan with Gemini was easy — it took less than a minute to open the app, click the scan button, and start the scanning. While you can choose specific folders to scan through, I chose my Macintosh HD disk drive. Once that was complete, it found 308.2 MB of removable content that I could then visually review under a few categories.
Once you've cleaned up duplicates withGemini, it’s easy to keep your Mac organized. How? Gemini will let you know right away if it finds any new duplicates you can ditch, all from the menu bar.
CleanMyMac: Take control of your clutter
CleanMyMac also offers a similar straightforward cleanup method. While it’s not a dedicated duplicate cleaner, the My Clutter tool sorts through a variety of files and downloads. These include fresh duplicates over the last three months, similar images, large and old files, and downloads from browsers.
It took around a minute, from downloading the app to initiating a scan and getting results. I was allowed to visually review specific modules or all files. I couldn’t really tell the total of all the files together, but All Files under Large & Old Files showed 14.6 GB, most of which were files relating to The Sims 4 that I couldn’t delete. However, what I like most about CleanMyMac, aside from the neat interface, is that it provides granular categories, such as kind, size, and access date.
If you’re looking to do more than just clean up duplicates, you can check out other CleanMyMac tools to get rid of any junk on your Mac that you don’t need anymore. For that matter, I recommend the Smart Care tool, which will find and delete system junk, unused apps, cache files, files with malware, and so on.
Disk Drill: Remove duplicates from certain folders
Disk Drill is a file recovery app that comes with various extra tools, such as a byte-to-byte backup disk image, a secure disk wiper that prevents others from recovering deleted files, and, best of all, a duplicate file finder.
Like Gemini, you can choose specific files to scan through, but I chose my main Macintosh HD disk drive for the scan. The scan took no time, and the app found 234.6 MB of files to delete, spread out across pictures, documents, and others.
Disk Drill is a great tool for accidentally deleting something you didn’t mean to. You can get your stuff back on either your Mac or iPhone. Just open Disk Drill, click on one of the Mac storage devices tab (where you lost your files) or the iPhone/iPad tab and click Search for lost data.
How to find duplicate files using Terminal
If you’re more comfortable with backend commands and command line interfaces, Terminal is the best way to interact with the macOS, including when you want to manage files. Aren’t very familiar with Terminal? You may want to avoid this method altogether.
Here’s how to delete duplicates through Terminal:
- Go to Finder > Applications > Utilities > Termina. Alternatively, press Command + Space to use Spotlight search.
- Use the cd command to navigate to the folder you want to scan. For example, type cd ~/Downloads and press Return to scan your Downloads folder.
- Type find ./ -type f -exec md5 {} \; | awk -F '=' '{print $2 "\t" $1}' | sort | tee duplicates.txt and press Return.
- Click Allow when prompted to let Terminal access files in that folder.
- Wait a few seconds, and you’ll see a list of identical files.
Terminal will also automatically generate a .txt file of all the duplicates.
P.S. Make sure to back up your files with Disk Drill before you start any cleanup commands. If you accidentally delete something, it’ll be tougher to get it back later.
Find duplicate files using Finder
If you’re totally against automation and have the time on your hands to do your duplicate file search manually, you can use Smart Folders in Finder.
Here’s how to do it:
- Open Finder.
- Click File in the menu bar > New Smart Folder.
- Click the add “+” button next to Save to choose the type of files you want to display, and click the add “+” button again to select more filters.
The worst part about this method is that you’ll now have to go through and sort all the files manually, which can take hours, if not days, depending on the number of files you have stored on your computer. It’s certainly not the easiest or quickest option, but if you truly want a hands-on method, it works.
TipSorting by Size or Date Modified is particularly helpful for identifying duplicates.
Check for duplicates in Photos library
The number one culprit for most duplicates is photos, which is why Macs introduced an automatic duplicate detector with macOS Ventura and Sonoma that helps you remove duplicate files.
If your Mac operates either Venture or Sonoma, here’s how to check duplicates in Photos:
- Go to Finder > Applications > Photos (or press Command+Space).
- Click Utilities > Duplicates in the sidebar.
- Right-click on a duplicate photo and delete it, or click the merge option to merge those duplicates.
This method sort of acts like a middle ground, where it’s not entirely automated nor entirely manual. The app will detect duplicates for you, but you’ll need to manually decide what you want to do with them.
How to find duplicates in Mail and Messages attachments
Not many people might realize this, but your Mail and Messages apps can truly take up a lot of space on your computer, especially if you frequently share media with your friends and family. These are often stored indefinitely in those apps until you decide to delete them. In Mail, they’re called “twin” attachments, as they’re stored in a folder on their own on your computer, too.
To find them:
- Open Finder.
- Click Go in the menu bar and choose Go to Folder (or press Shift + Command + G).
- Type ~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads and press Return.
The folder will display all attachments downloaded from the Mail app, which may include duplicate files saved multiple times.
Note: Unfortunately, there’s now a direct way to check for duplicates on the Messages app on macOS. So there are two possible ways to find them:
- Go to the Messages app on your Mac > Click a message and copy its content. Then, paste it in the Search bar to find duplicate messages.
- Open Finder and click Go in the menu bar > Go to Folder (or press Shift + Command + G). Type ~/Library/Messages/Attachments and press Return. Browse through the files to identify duplicates.
It is time…to get rid of duplicate files
Now that you know how to delete duplicate files on Mac, there’s no time like the present to do so. When you take the time to use built-in tools like Finder’s Smart Folders or the Photos automatic duplicate detector, you’ll realize how much precious space was truly taken up by duplicate files. While these features are handy, third-party apps with completely automated duplicate detector solutions can scan and remove duplicates much better and effectively.
Gemini, Disk Drill, and CleanMyMac are just three tools out of the 250+ that Setapp offers under a subscription or a 7-day trial, giving you access to a wide range of apps that help you keep your Mac optimized and clutter-free. By the way, if you want to delete duplicates on your phone, then you’ll love the CleanMy®Phone app from Setapp — the next time you’re coming back from vacation, you’ll be able to clear out the clutter before you hop on the plane.
以上是如何在Mac上查找和删除重复文件的详细内容。更多信息请关注PHP中文网其他相关文章!

本指南解释了如何将Macos Monterey安全降级到Big Sur。 主要的MACOS更新,尤其是Beta,可能会引入不兼容,速度问题或缺失功能等问题。本文提供了使用F的分步过程

Apple 自首款 iPad 于 2010 年发布以来,就开始为其设备设计自研芯片,最新迭代的芯片是 iPhone 13 上的 Apple A15 仿生芯片。 然而,对于 Mac 来说,第一款 Apple 自研芯片——Apple M1——直到 2020 年才与 MacBook Air、Mac mini 和 MacBook Pro 一起发布。2021 年,24 英寸 iMac 紧随其后,随后在 14 英寸和 16 英寸的 MacBook Pro 上得到了改进(作为 Apple M1 Pro 和 A

掌握Mac上的网页检查:综合指南 本指南提供了在Mac浏览器(Safari,Chrome和Firefox)上使用Inspect Element功能的详细演练,以检查和修改网页元素。 无论您是设计

macOS Monterey内存泄漏问题及解决方法 最近的macOS Monterey系统出现了一个困扰许多用户的严重问题——内存泄漏bug。一些应用程序会消耗大量的内存(RAM),导致系统弹出“应用程序内存不足”的警告。本文将解释这个问题的严重性以及解决方法。 内存泄漏如何影响您的工作 在讨论内存泄漏之前,让我们简要解释一下什么是内存以及为什么需要关注它。每台Mac都有一定的内存量,也称为RAM,它使Mac能够同时运行一定数量的任务。您是否注意到,当您打开许多标签页和应用程序时,Mac开始滞后

本指南向您展示了如何在Mac上轻松创建和管理多个用户帐户,使文件井井有条和系统顺利运行。 我将介绍不同的帐户类型,并提供用于优化多个用户性能的技巧。

在线游戏:用正确的VPN征服滞后和地理限制 因滞后,断开连接和地理限制而感到沮丧,破坏了您的在线游戏体验? 本指南基于彻底的研究,探讨了增强游戏玩法的最佳VPN


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

Dreamweaver Mac版
视觉化网页开发工具

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能

SublimeText3 Linux新版
SublimeText3 Linux最新版

mPDF
mPDF是一个PHP库,可以从UTF-8编码的HTML生成PDF文件。原作者Ian Back编写mPDF以从他的网站上“即时”输出PDF文件,并处理不同的语言。与原始脚本如HTML2FPDF相比,它的速度较慢,并且在使用Unicode字体时生成的文件较大,但支持CSS样式等,并进行了大量增强。支持几乎所有语言,包括RTL(阿拉伯语和希伯来语)和CJK(中日韩)。支持嵌套的块级元素(如P、DIV),

MinGW - 适用于 Windows 的极简 GNU
这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。