Linux之恢复误删除文件
发布日期:2021-05-09 15:23:22 浏览次数:16 分类:精选文章

本文共 2305 字,大约阅读时间需要 7 分钟。

������������������������������������

������

���������������������������������������������rm -f������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

������������

1. ������������

������������������������/root/selenium/Spider������������MySql.Data.dll������������������������������������������������������������������������

rm -f /root/selenium/Spider/MySql.Data.dll

���������������ls���������������������������

ls /root/selenium/Spider/MySql.Data.dll

���������������������������������������������������������������

2. ������������

������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

(1) ������lsof������������������

���������������������������������������������������������������������������������������������

lsof | grep /root/selenium/Spider/MySql.Data.dll

������������������������������������������������������������������������������������������������������������������������������������������������������

(2) ���������������������

������������������������������������������������������������������������������������������������ID������������������������������

cat /proc/23778/fd/86

���������������������������������������

cat /proc/23778/fd/86 > /root/selenium/Spider/MySql.Data.dll
3. ������������������

������������������������ls���������������������������������

ls -l /root/selenium/Spider/MySql.Data.dll

������������������������������������������

������������

���Linux���������������������������������������������������������������������/proc������������������������������������������������ls -l /proc/������������������������������������������������������������������������������������������������������������������������������������������������I/O������������������������������������������������������������������������

������

������������������������������������������������������������lsof���������������������������������������������������������������������������������������������������������������������������������������������������������������������������

上一篇:如何使用python远程操作linux
下一篇:小程序模板template使用介绍

发表评论

最新留言

很好
[***.229.124.182]2025年04月05日 18时21分29秒