Process: Using ln to do directory link testing, the implementation of the RM-RF completely delete the contents of the directory link, the execution is over, only to find the tragedy.
Then I thought I could recover no, but it was late. Need to rewrite your partition read-only, but when I install the system on a whole block ...
Querying directory node via Debugfs
The code is as follows
Copy
Introduction to Commands:
The RM command is used to remove files or directories from the Linux system. Typically RM does not delete the directory, you must delete the directory by specifying the parameter-R or-R. In addition RM can usually restore the file or directory (note that the
features : RM command to delete one or more files or directories (folders) in a directory.
It can also delete a directory and all of its files and subdirectories.
For linked files, only the links are deleted and the original files remain unchanged.
Once the file is deleted, it cannot be restored.
The warning is: Use this RM-RF must be extra careful,
In Linux, avoid using rm to accidentally delete files-lost memories-blog Bus
Avoid accidental deletion of files with rm in Linux: | category: Linux
Copyright Disclaimer: During reprinting, please use hyperlinks to indicate the original source and author information of th
/java: No file or directoryWarning: before deleting a folder, make sure that Java was not previously installed with RPM. (3) Type: rm -r jre For example:rm -r jre1.7.0RPM Command set:Query all installed RPM packages rpm -qa query Specifies whether the installation package is installed rpm -qa | grep package_name View details of an installed package rpm -qi package_anme View the configuration file for an installation package RPM-QC Package_n
Yesterday I learned the command to create files and directories mkdir, today to learn Linux delete files and directories command: RM command. RM is a commonly used command that deletes one or more files or directories in a directory, and it can delete a directory and all of its files and subdirectories. For linked files, only the link is deleted and the original
1 command function (brief description):This command is used to remove files or directories from a Linux system. Normally RM does not delete the directory, you must delete the directory by specifying the parameter-R or-R. In addition, RM can usually restore the file or directory (note that the RM Delete file is just the
' filename= ' basename $i ' mv $i $TRASH _dir/$fileName. $STAMP done 3) Modify ~/.BASHRC, add a lineAlias rm= "Sh/home/username/tools/remove.sh"Replace the RM command with our self-built remove.sh4) Set the crontab and empty the bins regularly, such as:0 0 * * * rm-rf/home/username/.trash/*Empty the trash bin at 0 o ' Day5) source ~/.BASHRC make the
Solution to the problem that RM cannot be deleted in Linux-Linux general technology-Linux programming and kernel information. For details, refer to the following section. A small problem occurs during U-boot development. The netizen wanglida79 met me a few days ago. I didn't simulate it at the time. Now I have met myse
RM: Delete command preface:Delete command in Windows Everyone is not unfamiliar, the removal command in Linux and Windows have a common feature, that is dangerous, the first two Linux mkdir command detailed and use the actual combat "beginner" we mentioned the RM command, Now let's take a detailed look at the commands
RM command
Creating files in Linux is easy, and files can become obsolete and useless in the system at any time. Users can delete them with the RM command. The function of this command is to delete one or more files or directories in a directory, and it can also delete a directory and all the files and subdirectories under it. For linked files, only the link is
Tags:. GZ style Source installation RM-RF exit variable etc usr effectiveOperating instructions:In order to prevent the operation of operating under Linux RM-RF/, or rm-rf some of the more important directories, we do the following to restrict the deletion of RM1. Download the source installation packageHttps://raw.git
RM Delete File command1 , command formatRM [Options] File ...2. Command functionRM Command, delete File command, is a common command under the Linux system, the function of the command is to delete a file or a whole directory or a part of the directory, it can also be a directory and all of its files and subdirectories are deleted. For linked files, only the link is deleted and the original file remains un
The hands are too fast and the intestines are ruined. Would have been to delete a file rm path/myfile.txtThe result somehow added a *, becameRM Path/myfile.txt *Hurriedly LS, found that all the code is Utopia, has not been submitted, has not been backed up. The deletion was not confirmed. A second, the world will be pure.Looking around with a fluke, there is no compression package backup. There are some backup places that are also very early in the wo
Document directory
Unzip the tar command in Linux
Find-name 'xixi. php' | xargs Perl-pi-E's | Hello | AA | G'
Find-name '*. html' | xargs Perl-pi-E's | AA | Hello | G'
Find-name '*. HTML '| xargs Perl-pi-E's | | G' (Note: It seems that only one row can be matched)
In Linux, this method is used to replace a large number of files with Trojans (JS files.
Search for the ABC. cpp file from the root direc
Yesterday I learned the command to create files and directories mkdir, today learn about the commands for deleting files and directories in Linux: RM command. RM is a commonly used command that removes one or more files or directories from a directory, and it can delete all files and subdirectories under a directory. For linked files, only the links are deleted a
Yesterday I learned the command to create files and directories mkdir, today learn about the commands for deleting files and directories in Linux: RM command. RM is a commonly used command that removes one or more files or directories from a directory, and it can delete all files and subdirectories under a directory. For linked files, only the links are deleted a
Yesterday I learned the command to create files and directories mkdir, today learn about the commands for deleting files and directories in Linux: RM command. RM is a commonly used command that removes one or more files or directories from a directory, and it can delete all files and subdirectories under a directory. For linked files, only the links are deleted a
Recover data: Restore deleted files in LinuxRecover data: Restore deleted files in LinuxGuideHave you ever encountered such a thing? When you find out, you have deleted the key or usedThe "rm" command mistakenly deletes an object that should not be deleted.
In the first case, you can go to the garbage bin, search for the file, and restore it to the original location. But what should I do in the second case?
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.