Alternatively, search Terminal in Spotlight.Ģ. Go to Finder > Applications folder > Utilities folder and click Terminal. In my tests, it always returned “grep: –: No such file or directory” and failed to find any results.īelow is a working way to use Terminal to detect the duplicate files on your MacBook Air, MacBook Pro or iMac etc.ġ. However, it doesn’t work for many people including me. 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 If you have done a bit of search, you probably have found the syntax below and tried it.įind. In Terminal, you can use MD5 or CRC algorithm to do the search, which identifies duplicates based only on content. You can use Mac’s Terminal app to do a lot of cool things including searching for duplicate files. How to find duplicate files on Mac with Terminal app
0 Comments
Leave a Reply. |