Now let's take a closer look at the RM command for Linux, which is the name of the command (I guess, hee, is remove)
Command format:
RM [OPTION] ... FILE ...
Remove (unlink) the FILE (s).
is to delete the file (s), as to what unlink is going to discuss later.
OPTION:
-F,--force ignore nonexistent files, never prompt
Ignore files that do not exist, do not alert
-I,--interactive prompt before any removal
Interactive, with reminders before any action occurs
--no-preserve-root do not treat '/' specially (the default)
Do not retain the root operation is any right/action is possible (default)
--preserve-root fail to operate recursively on '/'
Any recursive operations that protect the underlying root directory against/will be invalid
-R,-R,--recursive remove directories and their contents recursively
Recursively delete folders and their files
-V,--verbose explain what's being done
Show the things that have been done after deleting a file
--help Display this Help and exit
Show Help
--version output version information and exit
Show version
Command Use Sample:
1, delete a file, the system will pop up the prompt
RM file
2, forcibly delete files, the system will not be prompted
Rm-f file
3, delete the folder, will be recursive into the folder one by one prompts whether to enter the folder and whether to delete the Rm-r folder name
4, delete the folder, do not prompt
RM-RF folder name
Linux Initial Learning RM command