# safe_rm **Repository Path**: liyanqing1987/safe_rm ## Basic Information - **Project Name**: safe_rm - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-11-19 - **Last Updated**: 2025-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **Author:** liyanqing1987@163.com **Version:** V1.2 (2025.03.03) # What is “safe_rm”? `safe_rm` is a secure data deletion tool, which works exactly the same as `rm`. It can be referenced in an alias manner or directly replace the system's rm command. # Requirements - Linux - Python 3 # Quick Start 1. use as alias `[user@host ~]# alias rm=“/***/safe_rm“` ![use as alias](alias_demo.gif) 2. replace system rm `[root@host ~]# which rm` `/usr/bin/rm` `[root@host ~]# mv /usr/bin/rm /usr/bin/system_rm` `[root@host ~]# cp safe_rm /usr/bin/rm` ![replace system rm](replace_system_rm_demo.gif) # Configuration 1. Recommended configuration Specify recycle bin path: `self.recycle_bin_dir = ''` Specify log directory: `self.log_dir = ''` How to send alarm: `self.alarm_command = ''` 2. Optional configuration Specify protect path for yourself: `~/.config/safe_rm.protected` Specify recycle bin path for yourself: `~/.config/safe_rm.recycle` # Docs More usage information please see [User Manual](safe_rm_user_manual.pdf)