Usage summary mkdir little knowledge of Linux

      mkdir Linux is a commonly used basic commands, said that if the directory does not exist (folder) in the current path, then the new directory (folder). Its grammatical structure is as follows:

$ Mkdir [options] [directory]
        where "option" is optional, that is, after mkdir can directly access parameters; "Directory" specify the list of directories to be created, separated by a space between multiple directories.

        Instructions can be viewed by mkdir mkdir --help Usage:
Usage summary mkdir little knowledge of Linux
  The following by way of example to illustrate the use of the method mkdir.

Usage 1

$ Mkdir test
        This is the most basic usage, expressed in the current path to create a new test folder.

Usage 2

$ Mkdir abc
        this command center abc separated by a space, create three directories represented in the current path first (folder).

Usage 3

$ Mkdir -pa / b / c
        command indicates a new nested folders, a folder that is set under b folder, the folder set under b folder c. And two or more layers can be nested layers.

Usage 4

$ Mkdir -v test
        this command shows a display created directory information.

Usage 5

Mkdir test1 -vp $ / test2
$ mkdir -v -p test1 / test2
        these two instructions to achieve the same functionality, have indicated that while using two options.

Usage 6

        The new directory permissions will not rwxrwxr-x By default, if you want to set other permissions, -m options can be used, such as:      

$ Mkdir -m 777 test
        this directive represents a new directory (folder) test has all the permissions.

Guess you like

Origin blog.51cto.com/14541192/2439029