Forrest logo
back to the rdfind tool

rdfind:tldr:9b0be

rdfind: Replace all duplicates with symlinks/soft links.
$ rdfind -makesymlinks true ${path-to-directory}
try on your machine

The command "rdfind -makesymlinks true ${path-to-directory}" is used to find and removes duplicate files in a specified directory.

Here's a breakdown of the command:

  • "rdfind": This is the name of the command-line tool being used to find and remove duplicate files.
  • "-makesymlinks true": This flag, which is set to "true", specifies that symbolic links should be created for the duplicate files instead of deleting them directly. Symbolic links are special types of shortcuts that point to the original file, and they don't take up additional storage space.
  • "${path-to-directory}": This is the placeholder for the path to the directory where you want to search for duplicate files. You need to replace this placeholder with the actual path to the target directory.

By running this command, rdfind will scan the specified directory and identify duplicate files. Instead of deleting these duplicates, symbolic links will be created in their place, providing a way to access the original file without consuming extra disk space.

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 rdfind tool