linux恢復rm刪除檔案
linux使用rm刪除的檔案怎麼恢復呢,下面就讓我們來看看吧。
1、在終端視窗中輸入命令 touch demo.txt建立一個簡報。
2、執行命令rm -rf demo.txt 刪除該檔案。
3、執行 debugfs命令。
4、執行命令 dd if=/dev/mapper/vg_root-lv_root of=/home/demo.txt bs=640 count=1 skip=1089 來恢復檔案。
linux使用rm刪除的檔案怎麼恢復呢,下面就讓我們來看看吧。
1、在終端視窗中輸入命令 touch demo.txt建立一個簡報。
2、執行命令rm -rf demo.txt 刪除該檔案。
3、執行 debugfs命令。
4、執行命令 dd if=/dev/mapper/vg_root-lv_root of=/home/demo.txt bs=640 count=1 skip=1089 來恢復檔案。