rm 复制文件或目录
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 element
Option Description:
parameter Options |
Explanatory notes |
-F |
Force Delete, ignore nonexistent files, do not prompt for confirmation |
-R |
Recursively delete a directory and its contents |
About Delete:
- Use MV instead of RM, do not worry about deleting, but first move to recycle Bin/tmp
- Be sure to back up before deleting, preferably a different machine backup, there are problems can be restored at any time
- If the non-drug is removed, then use Find instead of RM, including cleaning up the file method through the System timer task
You can use the following more secure methods:
- If you do not want to delete through the RM command, then please switch directories in the delete, you can not use wildcard characters without wildcards. The deletion of the file prohibits the use of "RM-FR file name" because "RM-FR" mistakenly deletes the directory is not prompted, very dangerous, up to use "rm-f filename", recommended "RM file name"
- If you want to use a wildcard character, follow these methods
* Add "./", if "" in the deletion process preceded by a space, will delete the directory below the current directory * *
Linux Common Commands--rm