為防止Ubuntu回收站中重要文件誤刪,可采取以下措施:
trash-put
rm
alias rm='trash-put'
chmod 400
inotifywait
rsync
注意:若文件已從回收站徹底刪除,需立即停止寫入操作,并使用extundelete等工具嘗試恢復。
extundelete