tldr/pages/common/fdupes.md

29 lines
648 B
Markdown
Raw Normal View History

# fdupes
> Finds duplicate files in a given set of directories.
2019-06-07 11:58:11 +01:00
> More information: <https://github.com/adrianlopezroche/fdupes>.
- Search a single directory:
`fdupes {{directory}}`
- Search multiple directories:
`fdupes {{directory1}} {{directory2}}`
- Search a directory recursively:
`fdupes -r {{directory}}`
- Search multiple directories, one recursively:
`fdupes {{directory1}} -R {{directory2}}`
- Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others:
`fdupes -rd {{directory}}`
- Search recursively and delete duplicates without prompting:
`fdupes -rdN {{directory}}`