rip (Rm ImProved) is a modern replacement for the classic rm command, built in Go with a focus on safety, user-friendliness, and adherence to modern standards. Instead of permanently deleting files, rip moves them to the trash following the XDG Trash Specification, making recovery simple and reliable.
- XDG Trash Compliance: Ensures files and directories are recoverable by moving them to the user's trash.
- Accident Prevention: Provides a safer alternative to
rmby avoiding immediate data loss. - Simple and Intuitive: Retains a familiar interface while enhancing functionality.
- Cross-Platform Support: Works seamlessly on Linux and macOS.
rip works similarly to rm, but files are moved to the trash instead of being permanently deleted.
rip [OPTIONS] FILE...-r,--recursiveRemove directories and their contents recursively.-f,--forceSuppress warnings and prompts.-i,--interactiveAsk for confirmation before each removal.--versionShow the version information.--helpDisplay help text.
# Move a file to the trash
rip example.txt
# Remove a directory recursively
rip -r my-folder
# Interactive deletion
rip -i file1.txt file2.txtThis project is a work in progress. If you want to contribute, feel free to open issues, submit pull requests, or discuss ideas for improving the project!