當前位置:生活全書館 >

IT科技

> Linux使用rm刪除的檔案怎麼恢復

Linux使用rm刪除的檔案怎麼恢復

linux使用rm刪除的檔案怎麼恢復呢,下面就讓我們來看看吧。

1、在終端視窗中輸入命令 touch demo.txt創建一個演示文稿。

Linux使用rm刪除的檔案怎麼恢復

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

Linux使用rm刪除的檔案怎麼恢復 第2張

3、執行 debugfs命令。

Linux使用rm刪除的檔案怎麼恢復 第3張

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

Linux使用rm刪除的檔案怎麼恢復 第4張

標籤: linux rm 檔案
  • 文章版權屬於文章作者所有,轉載請註明 https://shqsg.com/zh-hant/dianzi/96g0w6.html