How to find and remove duplicate files for mac via command line?

0 votes
asked by (120 points)

1 Answer

0 votes
No avatar answered by (160 points)

Hi Andrey,

The best way to find and remove duplicate files for Mac via command line is to use the command line tool fdupes. Fdupes is a command line tool that can be used to quickly and easily find and delete duplicate files on your Mac. To use fdupes, open a Terminal window and type the command:

fdupes -r [directory]

Replace [directory] with the directory you want to search for duplicate files. Once you have entered the command, fdupes will scan the directory and list all duplicate files it finds. You can then delete the duplicate files by typing the command:

fdupes -d [directory]

Again, replace [directory] with the directory you want to delete the duplicate files from.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...