A Safe and Efficient Replacement for the Linux rm Command.
RR (Recoverable Removal) is a Rust-based alternative to the traditional Linux rm command, designed to enhance usability and file recoverability. With RR, you can enjoy the efficiency of the classic rm command, now with modern, user-centric safety and performance features tailored for Linux environments.
-
Optimized Parameter Handling
- Simplifies command options for a more efficient and user-friendly experience.
By acctualy just move the target files to
/var/tmp, options such as-rand-fare no longer needed. -
Recoverability
- Provides built-in recovery options, allowing easy restoration of deleted files, minimizing accidental deletions.
rrrestore the last removed files, and you can also check the/var/tmp/rr_removeddirectory to manually restore files.
You can also use rr --restore reapetedly to restore files that were removed before the last removal.
Or, you can see /var/tmp/rr_removed to manually restore files.
To remove a file or folder, simply run rr <file/folder>.
To restore the last removed file, run rr --restore.
To use RR directly, simply run the following command:
curl -L https://github.com/kites262/Recoverable_Removal/raw/main/scripts/installer/install_rr_amd64.sh | bash
# Or by proxy
curl -L https://ghproxy.cc/https://raw.githubusercontent.com/kites262/Recoverable_Removal/main/scripts/installer/install_rr_amd64_ghproxy.sh | bashTo build RR from source, you just run cargo build in the project directory like any other Rust project.
git clone https://github.com/kites262/Recoverable_Removal.git
cd Recoverable_Removal
cargo buildIf you find rr useful, please consider giving us a star!
Feel free to raise any ideas or issues in the Issues section.