Forrest logo
back to the czkawka-cli tool

czkawka-cli:tldr:39711

czkawka-cli: Find duplicate files in specific directories and delete them (default: `NONE`).
$ czkawka-cli dup --directories ${path-to-directory1 path-to-directory2 ---} --delete-method ${select}
try on your machine

This command is using the czkawka-cli tool (a disk cleaning application) to find duplicate files in specified directories and perform a deletion operation based on a selected method.

Here is a breakdown of the command:

  • czkawka-cli: This is the command-line interface for the czkawka tool. It allows you to interact with the tool from the command line.

  • dup: This is a subcommand of czkawka-cli used to find and manage duplicate files.

  • --directories ${path-to-directory1 path-to-directory2 ---}: This option specifies the directories in which the tool should search for duplicate files. You need to provide the paths to the directories you want to include, separated by spaces. For example, if you want to search in three directories, you would replace ${path-to-directory1 path-to-directory2 ---} with the actual paths like /home/user/directory1 /home/user/directory2 /home/user/directory3.

  • --delete-method ${select}: This option determines the method to be used for deleting duplicate files. The ${select} placeholder refers to a specific method you need to choose. There are various methods available, and you need to replace ${select} with the desired one. For example, you can use --delete-method hardlink to create hard links instead of deleting the duplicate files.

Note: Ensure you have the czkawka-cli tool installed and accessible in your command-line environment before executing this command.

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 czkawka-cli tool