Recoverable Security rm
We often use rm to delete some files. If you don't shake your hands, it will be a tragedy. You all know...
After such a tragedy, I decided to never stop it. I overwrote the shell function and executed the secure rm. This function backs up the files to be deleted to the specified directory by date. At the same time, there will be multiple v
Today, under the terminal, see my user directory has a ~ folder (Maven generation), to remove the recovery point space, habitual command RM-RF ~, a back car, suddenly think of time is too late, the world suddenly quiet, want to die heart have!Yes, ~ specified is the current user's directory, my username is liyd, equivalent to the execution of Rm-rf/home/liyd, all the files are deleted. Tried a variety of Li
directoryFormat: rm [OPTION] ... FILE ...Common options:-F,--force Force DeleteIgnore nonexistent files and arguments, never prompt-I prompt before every removal interactive mode-R,-R,--recursive recursive deleteRemove directories and their contents recursively-V,--verbose display Delete detailed procedureExplain what's being doneHere is an experiment to illustrate the role of RM1. Delete the T1 file in the/test/directory[Email protected] test]#
We often use the Find command for bulk operations. Such as: bulk delete old files, batch changes, time-based file statistics, file size based file statistics, and so on. In these operations, because the RM delete operation causes a change in the folder structure, it is assumed that a script is written using find combined with RM operations. Will encounter some trouble, this article through a sample for ever
The last time because of the company's machine to face the reload, began to panic in the Mac file SCP to my desktop. In the bustle of the original to delete a useless folder, the results with RM-RF when the tab, fill out the document did not see the press ENTER, no doubt, the file deleted the wrong. Because the RM command is not to go to the Recycle Bin, even before the deletion of the confirmation will not
Preface: I believe many friends have encountered in the Linux under the RM command mistakenly delete files, the heart of the moment as if there are countless alpaca in the Pentium. So how do you prevent this from happening? Of course there is a way, we can write a shell script, change the role of the RM command. The first step:First in the home directory to create a directory called Username name (of course
RM format is a streaming media Video file format developed by RealNetworks company, which can develop different compression ratios according to the different rates of network data transmission, so as to realize the real-time transmission and playback of video files on the Internet at low speed. It mainly contains three parts, RealAudio, RealVideo and Realflash.
RealNetworks company developed the audio and video compression specifications known as Rea
To add pop-up ads to ordinary RM files, the operation is not complex, and now there is a similar function on the Internet share software.
So is there a way to clear these RM files pop-up ads?
The fact that you can add events to the movie is one of the attributes of the RM file. Users can install Realproducerplus (one of RealNetworks's official products) to edit
How do I recover from an Ubuntu system that uses RM commands to delete files?If it is a EXT3/EXT4 file system, you can use the Extundelete tool to recover.$ df-ht File system type capacity used available% mount point/dev/sda1 ext4 455G 366G 66G 85%/Reference article:1. http://longgeek.com/2012/11/25/extundelete-recovery-for-linux-ext2-ext3-ext4-rm-rf-accidental-deletion-of-data/2. http://www.linuxyunwei.com
---linux delete files or directories command using Linux under RM commandUsers can use the RM command to delete unwanted files. The function of this command is to delete one or more files or directories in a directory, and it can delete all files and subdirectories under a directory. For linked files, only the link is broken, the original file remains unchanged.The general form of the
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
To copy files, use the CP (copy) command. However, the CP command has many uses. In addition to simple replication, you can also create a connection file (that is, a shortcut), compare the new and old two files and update them, copy the entire directory, and so on. For moving directories and files, use MV (move), which can also be used to rename (rename) directly. Remove the use RM (remove) command. Let's take a look at it below.CP (copy files or dire
otherwise error, indicating recursive replicationif the target does not exist: creates the specified directory, copying all the contents of the source file to the specified destinationif the target exists:Target is document: Direct error, not explanationTarget is directory: Copy to this directoryMV Command: Mv-move (rename) filesfunctionMV Command Table move , rename, cut the meaning of the move 's abbreviation, you can move the file to the specified directory, you can rename the file name, mov
Normally the LS-listed files that want to be directly piped through the RM-RF delete are not valid. At this point, we need to cooperate with the command Xargs use:
For example:Ls-t|tail-10|xargs RM-RF//sorted by time, delete the last 10 files
Of course, you can also use the Ls-lt|tail-100|awk ' {print $} ' |xargs RM-RF the effect is the same as the same, if you
Recently, users have reflected the Windows system RM/RMVB video file corruption, the user downloaded movie video files can not be viewed. RMVB format with outstanding quality and the support of many excellent software (such as Easy RealMedia Producer), under the lower average bit rate such as 400-500kbps, XviD and DivX picture quality is almost impossible to view, in addition to the color block is the color scale, unless it is very low resolution or h
1.mkdir rmdir Command:(1) Create a directory:[Email protected] ~]# Mkdir/tmp/learn/folderIf/tmp/learn does not exist at this time, an error will be made, resulting in the folder directory not being created successfully. To create a cascade, use the-p parameter:[Email protected] ~]# mkdir-p/tmp/learn/folder(2) Delete directory:Let's start with a method that we often use: RM Plus-r parameter[[email protected] ~]# rm
Tags: RMrm 复制文件或目录Syntax format: RM "option" "File" rm [options] [file]Note: The RM command and the following options and file directories must have at least one space between each elementOption Description:
parameter Options
Explanatory notes
-F
Force Delete, ignore nonexistent files, do not prompt for confirmati
1. Add the following script to a directory (e.g./data/shell)script Name:rm-remove.shScript content:#!/usr/bin/env Bash# func: Security: How to replace RM# TIME:2018/2/1# EDITOR:YW# --------------------para_cnt=$#Trash_dir= "/data/backup/.zc_trash"Date= ' Date +%f 'Trash_dir_d=${trash_dir}/${date}if [!-D ${trash_dir_d}]; thenMkdir-p ${trash_dir_d}FiFor I in $*Dostamp= ' Date +%s 'if [!-D ${trash_dir_d}/${stamp}]; thenMkdir-p ${trash_dir_d}/${stamp}FiPw
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.