Objective
As a multi-user, multi-tasking operating system, the files under Linux are hard to recover once they are deleted. Although the delete command only deletes the file nodes, it does not really erase the contents of the file, but other users and some processes that have write actions will soon overwrite the data. However, for home use of Linux, or mistakenly delete files after timely remediation, or can be restored
First, with the Operation SECURECRT remote to the operating system, check the current system version number, and file system format
[Email protected] ~]# cat/etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[Email protected] ~]# cat/proc/version
Linux version 3.10.0-693.5.2.el7.x86_64 ([email protected]) (GCC version 4.8.5 20150623 (Red Hat 4.8.5-16) (gcc)) #1 SMP Fri Oct 20:32:50 UTC 2017
[Email protected] ~]# uname-a
Linux sheng 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20:32:50 UTC x86_64 x86_64 x86_64 gnu/linux
[Email protected] ~]# uname-r
second, for the convenience of this experiment, we create a new document. [email protected] ~]# mkdir Example
[Email protected] ~]# CD example/
[Email protected] example]# cat/proc/meminfo > Web.txt
[email protected] example]# LL
Total 4
-rw-r--r--. 1 root root 1226 Dec 10:03 web.txt
Linux file Delete recovery operation by mistake