Home>Article>Operation and Maintenance> How to create a test directory in the root directory in Linux system

How to create a test directory in the root directory in Linux system

王林
王林 Original
2020-05-28 13:44:10 24326browse

How to create a test directory in the root directory in Linux system

You can use the mkdir command to create it. The specific command is

mkdir / test

mkdir Command syntax introduction:

mkdir [-p] dirName

Parameter description:

-p Make sure the directory name exists. If it does not exist, create one.

Example:

Create a test directory in the /urs/ directory.

Execute the following command

mkdir /urs/test

The result is as shown:

How to create a test directory in the root directory in Linux system

##Recommended tutorial:

linux tutorial

The above is the detailed content of How to create a test directory in the root directory in Linux system. 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