tldr/pages/common/fdupes.md

33 lines
777 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:
2022-12-04 09:12:49 +00:00
`fdupes {{path/to/directory}}`
- Search multiple directories:
`fdupes {{directory1}} {{directory2}}`
- Search a directory recursively:
2022-12-04 09:12:49 +00:00
`fdupes -r {{path/to/directory}}`
- Search multiple directories, one recursively:
`fdupes {{directory1}} -R {{directory2}}`
- Search recursively and replace duplicates with hardlinks:
2022-12-04 09:12:49 +00:00
`fdupes -rH {{path/to/directory}}`
- Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others:
2022-12-04 09:12:49 +00:00
`fdupes -rd {{path/to/directory}}`
- Search recursively and delete duplicates without prompting:
2022-12-04 09:12:49 +00:00
`fdupes -rdN {{path/to/directory}}`