1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:42:09 +02:00
tldr/pages/common/fdupes.md
Daniel Birket 9225f1fe91
fdupes: correct description of -rH to 'consider hardlinks' (#13289)
Correct description of fdupes -rH to 'consider hardlinks'
2024-07-21 16:00:42 +02:00

32 lines
770 B
Markdown

# fdupes
> Finds duplicate files in a set of directories.
> More information: <https://github.com/adrianlopezroche/fdupes>.
- Search a single directory:
`fdupes {{path/to/directory}}`
- Search multiple directories:
`fdupes {{directory1}} {{directory2}}`
- Search a directory recursively:
`fdupes -r {{path/to/directory}}`
- Search multiple directories, one recursively:
`fdupes {{directory1}} -R {{directory2}}`
- Search recursively, considering hardlinks as duplicates:
`fdupes -rH {{path/to/directory}}`
- Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others:
`fdupes -rd {{path/to/directory}}`
- Search recursively and delete duplicates without prompting:
`fdupes -rdN {{path/to/directory}}`