開心生活站

位置:首頁 > IT科技 > 

Linux恢復剛刪除的文件的步驟

IT科技5.29K

linux刪除的文件怎麼恢復?我們一起來了解一下吧。

1、在終端窗口中輸入命令 mkdir創建一個演示文件夾。

Linux恢復剛刪除的文件的步驟

2、執行命令rm -rf demo.txt 刪除該文件。

Linux恢復剛刪除的文件的步驟 第2張

3、執行 debugfs命令。

Linux恢復剛刪除的文件的步驟 第3張

4、執行命令 dd if=/dev/mapper/vg_root-lv_root of=/home/demo.txt bs=640 count=1 skip=1089 來恢復文件。

Linux恢復剛刪除的文件的步驟 第4張

標籤:linux 文件