rm command is used to delete a file or directory, in the format: "rm [options] files."
Ordinary delete files and prompt confirmation message: "rm filename"
delete files or directories ordinary files without prompting: "rm -rf file or directory name"
parameter role
-f ignore the warning message
before deleting check with -i
-r delete a folder
delete install.log file, enter "y" that is confirmed:
[root @ linuxprobe ~] # install.log RM
RM:? Regular empty the Remove file 'install.log' the y-
delete x.log files without confirmation:
[root @ linuxprobe ~] # rm -rf x.log
rm-- delete a file or directory
Guess you like
Origin www.cnblogs.com/wsy0202/p/11084927.html
Recommended
Ranking