Home  >  Article  >  Operation and Maintenance  >  How to create a folder in linux

How to create a folder in linux

尚
Original
2019-12-25 11:54:047388browse

How to create a folder in linux

Linux creates directories: mkdir (make directories)

Function description: Create directories

Syntax: mkdir [-p ][--help][--version][-m ][Directory name]

Supplementary explanation: mkdir can create a directory and set the permissions of the directory at the same time.

Parameters:

-m or –mode Set the directory permissions when creating the directory.

-p or –parents If the upper-level directory of the directory to be created has not been created yet, the upper-level directory will be created together.

Example: mkdir test

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to create a folder in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn