Forrest logo
back to the jdupes tool

jdupes:tldr:32579

jdupes: Search multiple directories and keep the directory order in result.
$ jdupes -O ${directory1} ${directory2} ${directory3}
try on your machine

The command "jdupes -O ${directory1} ${directory2} ${directory3}" uses the "jdupes" tool to find and manage duplicate files in multiple directories.

Here's what each part of the command means:

  • "jdupes": This is the command to invoke the jdupes tool.

  • "-O": This option tells jdupes to only consider duplicate files that have the same size and the same contents. It will ignore duplicates that have the same size but different contents.

  • "${directory1}": This is the first directory path provided as an argument to the command. Replace "${directory1}" with the actual directory path you want to search for duplicates in. This can be any valid directory path on your system.

  • "${directory2}": This is the second directory path provided as an argument to the command. Replace "${directory2}" with the actual directory path you want to search for duplicates in. You can add more directories by extending the command with additional "${directory}" arguments.

  • "${directory3}": This is the third directory path provided as an argument to the command. Replace "${directory3}" with the actual directory path you want to search for duplicates in.

The jdupes tool will compare the files in the specified directories and identify any duplicates based on their size and contents. The duplicates will be listed as output, and you can choose to delete or manage them as you wish.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the jdupes tool