Concise Linux Command Line Note 5: rm www.2cto.com rm can be used to delete files or directories 1. usage rm [Option]... file... 2. if the common parameter-f is not prompted, force delete the file-r or-R recursively Delete the directory-I When deleting the file prompt-v print the file name www.2cto.com 3 When deleting the file. command tip: directly delete the file siu @ Darling ~ /Work $ rm a.txt siu @ Darling ~ /Work $ lsaaa prompts siu @ Darling ~ When deleting the file ~ /Work $ rm-I demo.txt rm: Do you want to delete the common empty file "demo.txt "? Ysiu @ Darling ~ /Work $ lsaaa: the information displayed when deleting a file is siu @ Darling ~ /Work $ rm-v aaa.txt deleted "aaa.txt" siu @ Darling ~ /Work $ lsaaa recursively Delete the directory siu @ Darling ~ /Work $ rm-r aaa/siu @ Darling ~ /Work $ lssiu @ Darling ~ /Work $ Delete All txt files ending with siu @ Darling ~ /Work $ lsa. java a.txt B. c B .txt c.txt d. cppsiu @ Darling ~ /Work $ rm *. txtsiu @ Darling ~ /Work $ lsa. java B. c d. cpp