2014-08-23 10:26:21 +01:00
|
|
|
# fdupes
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Finds duplicate files in a set of directories.
|
2019-06-07 11:58:11 +01:00
|
|
|
> More information: <https://github.com/adrianlopezroche/fdupes>.
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Search a single directory:
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`fdupes {{path/to/directory}}`
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Search multiple directories:
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2014-09-14 22:29:47 +01:00
|
|
|
`fdupes {{directory1}} {{directory2}}`
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2021-02-04 18:14:01 +00:00
|
|
|
- Search a directory recursively:
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`fdupes -r {{path/to/directory}}`
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Search multiple directories, one recursively:
|
2014-08-23 10:26:21 +01:00
|
|
|
|
2014-09-14 22:29:47 +01:00
|
|
|
`fdupes {{directory1}} -R {{directory2}}`
|
2021-02-04 18:14:01 +00:00
|
|
|
|
2024-07-21 15:00:42 +01:00
|
|
|
- Search recursively, considering hardlinks as duplicates:
|
2022-09-24 02:48:46 +01:00
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`fdupes -rH {{path/to/directory}}`
|
2022-09-24 02:48:46 +01:00
|
|
|
|
2021-02-04 18:14:01 +00:00
|
|
|
- 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}}`
|
2021-02-04 18:14:01 +00:00
|
|
|
|
|
|
|
- Search recursively and delete duplicates without prompting:
|
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`fdupes -rdN {{path/to/directory}}`
|