Linux Initial Learning RM command

Source: Internet
Author: User

Now let's take a closer look at the RM command for Linux, which is the name of the command (I guess, hee, is remove)

Command format:

RM [OPTION] ... FILE ...

Remove (unlink) the FILE (s).

is to delete the file (s), as to what unlink is going to discuss later.

OPTION:

-F,--force ignore nonexistent files, never prompt

Ignore files that do not exist, do not alert
-I,--interactive prompt before any removal

Interactive, with reminders before any action occurs
--no-preserve-root do not treat '/' specially (the default)

Do not retain the root operation is any right/action is possible (default)
--preserve-root fail to operate recursively on '/'

Any recursive operations that protect the underlying root directory against/will be invalid
-R,-R,--recursive remove directories and their contents recursively

Recursively delete folders and their files
-V,--verbose explain what's being done

Show the things that have been done after deleting a file
--help Display this Help and exit

Show Help
--version output version information and exit

Show version

Command Use Sample:

1, delete a file, the system will pop up the prompt

RM file

2, forcibly delete files, the system will not be prompted

Rm-f file

3, delete the folder, will be recursive into the folder one by one prompts whether to enter the folder and whether to delete the Rm-r folder name

4, delete the folder, do not prompt

RM-RF folder name

Linux Initial Learning 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.