Command format:
RM [Options] File or directory
Command function:
Delete one or more files or directories
Command parameters:
- F do not give a hint, forcibly delete
-I will prompt when I delete, interactive operation
- R,-R you need to add this option to delete the directory recursively
- v Show more information
Common examples:
Example one: Delete the file 1.txt, ask the system to give the prompt information
Command:rm 1.txt or rm-i 1.txt
Example two: forcibly delete file 2.txt
Command:rm-f 2.txt
Example three: Forcibly deleting a directory test
Command:rm-rf Test
Note: RM is a dangerous command when you want to perform a delete directory operation, it is best to determine the current working directory in order to avoid accidental operation
This article is from the "Shiyu" blog, make sure to keep this source http://928004321.blog.51cto.com/10707688/1730933
Linux Command —-— RM