QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 951|回复: 0

linux环境下如何undelete[转]

[复制链接]
发表于 2002-12-19 22:17:21 | 显示全部楼层 |阅读模式
??先在自己的主目录下创建一个名为.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 掉就没救了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-7 20:03 , Processed in 0.067611 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表