Delete a file

Source: Internet
Author: User

Rm [Option]... file...
Delete an object.

-F, -- Force Delete. Ignore nonexistent files and do not Prompt confirmation
-I must be confirmed before deletion
-I prompt once before removing more than three files, or
When removing recursively. less intrusive than-I,
While still giving protection against most mistakes
-- Interactive [= when] prompt according to when: never, once (-I), or
Always (-I). Without when, prompt always
-- One-file-system when removing a hierarchy recursively, skip any
Directory that is on a file system different from
That of the corresponding command line argument
-- No-preserve-root does not treat "/" specially
-- Preserve-root cannot delete "/" (default)
-R,-R, -- Recursive recursively deletes directories and their contents
-V, -- verbose detailed display steps
-- Help: displays the help information and leaves
-- Version: displays the version information and leaves.

By default, RM does not delete the directory. Use the -- Recursive (-R or-R) option to delete each given
And all its contents.

To delete an object whose first character is '-' (for example, '-foo'), use one of the following methods:
Rm ---foo

Rm./-foo

Note that if you use RM to delete a file, you can restore it to its original state. If you want to ensure
The content of this file cannot be restored. Please use shred.

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.