bixuan 发表于 2002-12-19 22:17:21

linux环境下如何undelete[转]

??先在自己的主目录下创建一个名为.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 掉就没救了。
页: [1]
查看完整版本: linux环境下如何undelete[转]