Among the many commands of Linux system, rm command is mainly used to delete files. The following small series will explain the rm command of Linux system in detail, and hope to help beginners.
Name: rm
Access: All users
use: rm [options] name .. .
Description: Delete files and directories.
Parameters:?
-i Ask for confirmation one by one before deleting.
-f Even if the original file attribute is set to read-only, it is deleted directly, and it is not necessary to confirm one by one.
-r Delete the directory and the following files one by one.
Example:
Delete all C language files; ask for confirmation before deleting:
rm -i *.c
Put the Finished subdirectory and Delete all files in the subdirectory:
rm -r Finished
Description: Delete files or directories.
Syntax: rm [-dfirv][--help][--version][file or directory. . . ]
Additional note: Execute the rm command to delete the file or directory. If you want to delete the directory, you must add the parameter “-r”, otherwise the default will only delete the file.
Parameter:
-d or --directory Delete the hard link data of the directory to be deleted directly into 0 and delete the directory.
-f or --force Forces the deletion of files or directories.
-i or --interactive Ask the user before deleting an existing file or directory.
-r or -R or --recursive Recursive processing, all files and subdirectories under the specified directory are processed together.
-v or --verbose Shows the execution of the instruction.
--help Online help.
--version Displays version information.
The above is the introduction of the Linux system rm command, the simple use of the rm command can only delete files, if you want to delete the directory, you must use rmdir or rm-rf, you remember?
If the Linux system is compromised, then personal privacy data is likely to leak, a
We all know that the rm command in the Linux command is mainly used to delete files, then what is th
Previously, Xiaobian introduced the Ubuntu 12.04 method of installing the Gnome Shell extension, but
Is still a headache for not knowing how to use grep command, if you pass the instance, you can bette
How to regularly clean up Nginx logs in Linux system
Beginners how to view the shell guide in Linux
How does Linux use tools to encrypt data?
What should I do if the Shell command cannot be used after the Linux system is installed?
The basic process of setting serial port properties in Linux system
How to configure dynamic IP service for Linux system
Linux system how to use bunzip2 command
How to install and set up VNC on CentOS
Linux system startx command function and usage
How does the win10 system turn off driver updates? Win10 turn off the driver update method
Win8 system desktop IE10 browser can not open QQ space how to solve
Win7 forced shutdown can not start the solution step
How to insert and share the U disk data
What should I do if the Win10 system remote desktop connection is not available?
Does Windows 7 need to crack the number of TCP/IP connections?
Play Win7 power function Custom life plan
How to solve the problem that Win7 system does not have access to network resources?