Linux Command —-— RM

Source: Internet
Author: User

  1. Command format:

    RM [Options] File or directory

  2. Command function:

    Delete one or more files or directories

  3. Command parameters:

    - F do not give a hint, forcibly delete

    -I will prompt when I delete, interactive operation

    - R,-R you need to add this option to delete the directory recursively

    - v Show more information

  4. Common examples:

Example one: Delete the file 1.txt, ask the system to give the prompt information

Command:rm 1.txt or rm-i 1.txt


Example two: forcibly delete file 2.txt

Command:rm-f 2.txt


Example three: Forcibly deleting a directory test

Command:rm-rf Test

Note: RM is a dangerous command when you want to perform a delete directory operation, it is best to determine the current working directory in order to avoid accidental operation

This article is from the "Shiyu" blog, make sure to keep this source http://928004321.blog.51cto.com/10707688/1730933

Linux Command —-— RM

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.