mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 15:42:31 +00:00
38 lines
863 B
Plaintext
38 lines
863 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|