Forrest logo
tool overview
On this page you find all important commands for the CLI tool fdupes. If the command you are looking for is missing please ask our AI.

fdupes

fdupes is a command line tool that is used to find and delete duplicate files within a specified directory or set of directories. It works by comparing file sizes and then performing a byte-by-byte check to determine if the files are identical.

fdupes provides various options to customize the search criteria, such as matching based on file name, file size, or both. It can also recursively search through subdirectories and prioritize which files to keep or delete.

One of the key features of fdupes is its ability to support hard links. Instead of simply deleting duplicate files, it can replace them with hard links, which saves disk space by allowing multiple files to reference the same physical data. This ensures that even if a file is deleted, the hard link will point to the original data and prevent data loss.

Overall, fdupes is a powerful and efficient tool for managing disk space by identifying and removing or replacing duplicate files. It is available for Unix-like operating systems, including Linux and macOS.

List of commands for fdupes:

  • fdupes:tldr:3cc4d fdupes: Search recursively and replace duplicates with hardlinks.
    $ fdupes -rH ${path-to-directory}
    try on your machine
    explain this command
  • fdupes:tldr:53a89 fdupes: Search multiple directories, one recursively.
    $ fdupes ${directory1} -R ${directory2}
    try on your machine
    explain this command
  • fdupes:tldr:9335a fdupes: Search recursively for duplicates and display interactive prompt to pick which ones to keep, deleting the others.
    $ fdupes -rd ${path-to-directory}
    try on your machine
    explain this command
  • fdupes:tldr:a080e fdupes: Search recursively and delete duplicates without prompting.
    $ fdupes -rdN ${path-to-directory}
    try on your machine
    explain this command
  • fdupes:tldr:cb7ff fdupes: Search a single directory.
    $ fdupes ${path-to-directory}
    try on your machine
    explain this command
  • fdupes:tldr:d8980 fdupes: Search multiple directories.
    $ fdupes ${directory1} ${directory2}
    try on your machine
    explain this command
  • fdupes:tldr:f0350 fdupes: Search a directory recursively.
    $ fdupes -r ${path-to-directory}
    try on your machine
    explain this command
tool overview