Concise Linux command line Notes 5: rmrmwww.2cto. comrm 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 delete the file...
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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service