Introduction to Linux rmdir programs __linux

Source: Internet
Author: User

1. Introduction

rmdir command usage: rmdir [options] ... Directory...
Delete the directory if < directory > has no data.

2. Option:
--ignore-fail-on-non-empty
Ignore any errors caused by the directory still has data
-P,--parents Remove DIRECTORY and its ancestors. e.g., ' Rmdir-p a/b/c ' is
Similar to ' rmdir a/b/c A/b '.
-V,--verbose output a diagnostic for every directory processed
--HELP displays this help information and exits
--version output version information and exit

3. Example:
Delete a subdirectory named AAA under the working directory:
RmDir AAA

In the BBB directory under the working directory, delete the subdirectory named Test. If the BBB directory becomes an empty directory after Test deletion, BBB will also be deleted.
Rmdir-p Bbb/test


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.