rip
Safely delete files with undo support
TLDR
Delete file safely
SYNOPSIS
rip [--seance] [--unbury] [--decompose] [options] [files]
DESCRIPTION
rip (Rm ImProved) is a safer alternative to rm that moves deleted files to a "graveyard" directory instead of permanently removing them. The graveyard preserves the original filesystem path structure, making it straightforward to restore files to their exact original locations when needed.
The --seance command lists all files currently in the graveyard along with their original paths and deletion timestamps. The --unbury command restores files, either the most recently deleted item or a specific named file. When graveyard contents are no longer needed, --decompose permanently removes them to reclaim disk space.
The graveyard location defaults to /tmp/graveyard-$USER but can be customized with the --graveyard flag. The tool handles directories recursively and provides an --inspect option to preview files before deletion.
PARAMETERS
-s, --seance
List buried files.-u, --unbury FILE
Restore file.-d, --decompose
Permanently delete.--graveyard DIR
Custom graveyard path.-i, --inspect
Inspect before delete.
CAVEATS
Graveyard uses disk space. Large deletes may fill storage. Not secure delete.
HISTORY
rip (Rm ImProved) provides a safety net for file deletion. It gives users a chance to recover accidentally deleted files.
