Linux commands: mkdir command

Source: Internet
Author: User

Example 1: Create an empty directory

mkdir test

Example 2: Creating Multiple directories recursively

Mkdir-p/home/test

Example 3: Create a directory with permissions of 777

MKDIR-M 777 Test

Example 4: Creating a new directory displays information

Mkdir-v Test

Example 5: A command to create a directory structure for a project

MKDIR-VP Test/{lib/,bin/,doc/{info,product},logs/{info,product},service/deploy/{info,product}}

View directory structure: Tree test/

test/

|--bin

|--doc

| |--Info

| '--product

|--Lib

|--logs

| |--Info

| '--product

'--Service

'--Deploy

|--Info

'--product

Linux commands: mkdir 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.