Linux RM Command

Source: Internet
Author: User

RM command can delete directories or files, or recursively delete all files and directories under the specified directory

Note : RM is a dangerous command and should be used with caution, especially for beginners.

1. Usage

RM [Options] [parameters] (parameters are directories or files)

2. Command options

-F: Do not prompt, forcibly delete files or directories;
-I: Ask the user before deleting an existing file or directory;
-r,-r: Recursive Delete, all files under the specified directory and subdirectories are deleted;
-V: Displays the detailed execution of the instruction.

3. Example

[Email protected] ~]# tree test/Test/├──test1│└──test2│└──test3│└──aa.txt└──test.txt3Directories,2Files[[email protected]~]#RM-ir test/RM: Whether to enter the directory"test/"?N[[email protected]~]#RM-FR test/[[Email protected]~]# ll Total dosage4-RW-------.1Root root1530July +  +: -Anaconda-ks.cfg

Linux RM Command

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.