(007) The RM for Linux commands

Source: Internet
Author: User

Fundamentals of the ten-year OPS series-Linux

Zeng Lin

Contact: [Email protected]

Website: www.jplatformx.com

Copyright: Please do not reprint the article without permission

First, Introduction

The purpose of the RM command is to delete files and directories as follows:

RM Item ...

Where item is the name of one or more files (or directories).

Use the RM command with special care because the Unix-like operating system (such as Linux) does not contain commands to restore the delete operation. Once the RM command is used, it is completely removed. The Linux system Default user is wise and knows what you are doing.

Second, command options

The following table lists the command options for RM commands, mainly including directory deletion, interactive deletion, and so on. It is sufficient to remember the following 4 options in general daily work.

Options Meaning
-I.,--interactive Prompts the user for confirmation before deleting an existing file. If this option is not specified, the RM command deletes the file by default
-R,--recursive Removes the directory recursively. That is, if the deleted directory has subdirectories, delete them as well. To delete a directory, you must specify this option
-F,--force Ignores files that do not exist and does not require prompt confirmation. This option overrides the--interactive option
-V,--verbose Display informational messages when deleting files

(007) The RM for Linux commands

Related Article

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.