Then on a business, the issue of the missing file under Linux,
Before the file is missing because stored in the / var / tmp, the default system clean-up needs to be restored
Of course, if the user manually clean it, such as: rm delete,
Then you can use the following method to recover (not say a hundred percent, the next test may be able to recover successfully, everyone's situation is not the same machine)
1, the installation extundelete
yum install extundelete
2, the implementation of the recovery command
extundelete /dev/sdb1 --restore-all 恢复分区
或者
extundelete /dev/sdb1 --restore-file /file1.txt 恢复某一个文件
或者
extundelete /dev/sdb1 --restore-directory /var/tmp 恢复某一个目录
Recover all or a file or directory, the command sdb1 indicates that the disk, you can -h df to view the file you want to recover the corresponding disk directory,
Through the above command, after executing, you can generate a RECOVERED_FILES directory, files related to recovery are in the inside.