歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> linux環境下的undelete

linux環境下的undelete

日期:2017/2/27 14:30:06   编辑:更多Linux
  先在自己的主目錄下創建一個名為.trash的子目錄,然後在bashrc加入以下指令:   alias rm 'mv -f !* ~/.trash'   alias undel 'mv ~/.trash/!* ./!*'   alias cleantrash '/bin/rm -rf ~/.trash; mkdir ~/.trash;sync'   alias lrm 'ls ~/.trash'   若文檔是直接用rm命令刪除的,理論上 ext2 內 rm 掉的檔案還是可以用 debugfs , ext2ed 救回來的.當然... 被 overwrite 掉就沒救了。




Copyright © Linux教程網 All Rights Reserved