Linux 啟用Trash 回收桶
安裝Trash 回收桶以避免RM 誤刪除檔案
安裝Trash-Cli
apt install trash-cli
指令
刪除檔案
trash 123.txt
查看回收桶
trash-list
清空回收桶
trash-empty
回收桶檔案路徑為~/.local/share/Trash/files/
RM指令取代Trash
建立/etc/profile.d/00-aliases.sh
alias rm='trash'
安裝Trash 回收桶以避免RM 誤刪除檔案
apt install trash-cli
刪除檔案
trash 123.txt
查看回收桶
trash-list
清空回收桶
trash-empty
回收桶檔案路徑為~/.local/share/Trash/files/
建立/etc/profile.d/00-aliases.sh
alias rm='trash'
No comments to display
No comments to display