use rmtrash instead of rm, to do alias rm=/bin/rmtrash.sh in bashrc
found that when a personal account uses rm, the files will be moved to the ~ / .rmtrash folder, and the
root account will also be moved to ~ / .rmtrash
but personal account sudo rm will not be placed under .rmtrash. It has been searched under both personal account and root account.
excuse me
- what is the difference between sudo rm and the rm of root users?
- when rmtrash uses sudo to delete, whether rm or rmtrash? is called If the call is still rm, how can it be changed to call rmtrash??