linux删除的文件怎么恢复呢,下面就让我们来看看吧。

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 来恢复文件。

以上就是小编的分享,希望能帮到大家。