当前位置:科普知识站>IT科技>

liunx误删文件的恢复流程

IT科技 阅读(3.18W)

1、在终端窗口中输入命令 touch demo.txt创建一个演示文稿。

liunx误删文件的恢复流程

2、执行命令rm -rf demo.txt 删除该文件

liunx误删文件的恢复流程 第2张

3、执行 debugfs命令。

liunx误删文件的恢复流程 第3张

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

liunx误删文件的恢复流程 第4张