Topcount topcount
#general

Part 3. Remove Duplicate Photos on Mac via Terminal

Another quick method to remove duplicate photos on Mac is by using the terminal. This method helps you save more time going on each folder manually and delete the duplicates. In the terminal window, you can easily remove duplicates because the command displays folder locations with potential similar images. Here’s the complete step by step guide on how to remove duplicate photos via Terminal: Launch Terminal by going to Applications and then Utilities. You may also search is using Spotlight. Inside the command line, you can use the cd command to help you go to a specific location. For example, cd ~/Pictures will retrieve the Pictures folder. Enter: 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 - this command will help you find all duplicate files (including photos) and will create a .txt file containing these files. Go to Finder and look for these specific files mentioned in the .txt file; from here you can move them to trash. Remember to empty the trash folder too after deleting the duplicates.

0 aggregate score 1 list appearances
Total Votes
0
Lists
1
Best Rank
#5
Avg Rank
#5

Featured in these lists

Compare with others in General

Discussion (0)

Sign in to join the discussion.
No comments yet. Be the first.