Linux file Delete recovery operation by mistake

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.