Create and delete directories under Linux

Source: Internet
Author: User
Tags parent directory

To create a directory:

Command format: mkdir [-MPV] Directory

-m Specifies the permissions to create the directory//mkdir-m 666 test1

-P If the parent directory does not exist, create//Mkdir-p/TEST/1/2/3

-V Displays the process information for creating the directory//with-M or-p with


To delete a directory:

RmDir

Only limit and delete empty directories, infrequently used, rmdir-p can cascade delete a large list of directories, but there is a directory in the cascading directory is not empty, it is not necessary.

You can use RM to delete, and RM can delete directories or delete files.


Create and delete directories under Linux

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.