file named duplicate will be created in the folder that you have chosen, which lists out duplicate files in the folder. 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 Copy the following command in Terminal and hit Enter.įind. For example, to search duplicate files in Downloads folder, you can type: cd ~/Downloads and click Enter. Choose a folder that you would like to clean duplicates and locate the folder with cd command in Terminal. Open Finder and type terminal to bring out Terminal tool. Now, you can follow the steps below to find duplicate files on Mac manually: It might mess up your Mac OS X/macOS if you enter the wrong command. However, this method is NOT for those have barely used Terminal before. Method 1: Find Duplicate Files on Mac with Terminal Commandīy using Terminal command, you can detect duplicate files more quickly.
You can get tons of free space on your Mac in a few clicks. Here we will introduce to you two easy ways to find duplicate photos, documents, music or video files in your Mac OS X: using Terminal or using duplicate files finder for Mac. However, just think of the time and effort it takes to sort out thousands of duplicates from folder to folder! There must be better ways to find and remove duplicate files all at once. You can manually find out duplicate files on Mac OS X. You have moved some files to an external drive but forget to delete the original copies.There will be "(1)" in the file name of the duplicate.
You download a photo or file twice without noticing it.So you get two copies of the attachment if you manually download the file. However, once you open an attachment, the Mail app has automatically downloaded a copy of the file. We usually preview the email attachments before downloading the files.