Common linux Command mkdir command usage detailed

Source: Internet
Author: User
Tags mkdir

mkdir commands that we use a lot more when we operate Linux operations and Web deployments, primarily to create a directory folder that you specify. For example, Chiang Kai-shek in the previous blog article mentioned in the download data hard disk, we need to create a home or WWW directory folder, then we use the mkdir command. Of course, we can also use the SFTP tool for visual creation, a little cumbersome and cumbersome.


First, command format

mkdir [parameters] [contents]

The main function is that we create the directory, or we can give permission.

Second, command parameters

1,-M

Set folder directory Permissions

2.-P

Create a directory path, and we can also create multiple directories at once.

3,-V

The creation process information is displayed when the directory is created.

Third, the command instance

1, mkdir-m 777 111cn.net

Here we create a directory that authorizes 777 permissions.

mkdir Command Instance

2, Mkdir-p m.111cn.net/111cn.net

Here we can create the itbulu.com directory including the laobuluo.com directory. With no arguments,-p can create directories that are embedded in the directory path. If we want to create a directory directly, we can add no parameters.

3, Mkdir-v 111cn.net

Here we create a directory, and we are prompted to create process information.

mkdir Command Usage detailed

Summing up, mkdir command when we are shipping a Linux server, still need to use, more use will be familiar with, sometimes we lazy afraid to remember the command, the use of FTP to achieve, we will appear to be very powerful, but also to learn to command, at least looking at a very powerful look.

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.