Command Line rm recycle bin in linux/mac -- rmtrash
The command line of linux and mac does not have the recycle bin function. In many cases, an important file is sent to rm-fr * When the hand shakes. Although it may be retrieved through lost + found/debugfs in linux, however, it is difficult and cannot be recovered. People will always make mistakes. I have also made three mistakes in my work over the past few years after rm-fr was deleted and regretted. It is better to prevent them from happening, add a recycle bin mechanism like a desktop operating system (windows, mac OS, and Ubuntu). After several days of efforts, you can finally implement it on github. welcome to use it.
Rmtrash is the command line version rm recycle bin in linux and mac. It is transparent to users after installation,
Reminder: rmtrash is mainly used to prevent accidental deletion. the recycle bin itself cannot replace the normal data backup operations of the system. Data Backup is still very important.
Lai Zhang: