rmd
An improved rm implementation able to remove duplicate files
Description
rmd is an rm reimplementation made in pure Rust. It is able to remove files and directories as usual but it also able to remove duplicate file in given directories recursively.
Duplicate file are found by comparing SHA256 hashes. When a file has an hash that has already been found it is removed immediately.
Installation
This tool can be easly installed from sources:
Usage
It works in an almost compatible way with the standard rm. To get a full help run:
But the most common scenarios includes:
- remove files, for example:
- remove a directory, for example:
- remove duplicates files in the current directory, and all sub directoris:
or remove duplicates files in a specified directory:
Note
Interactive mode is not currently implemented, if the program is run with the -i flag it will not behaves differently
So
is equivalent to