mkdir of the shell command creates a directory

1. Create a first-level directory

mkdir dirName

dirName indicates a certain directory;

Create dirName directory under the current directory;

2. Create a multi-level directory

mkdir -p dirName1/dirName2/dirName3/

dirName1, dirName2, dirName3 represent a certain directory;

Create the dirName1 directory under the current directory, where the dirName1 directory contains the dirName2 directory, and the dirName2 directory contains the dirName3 directory;

Note: -p cannot be omitted;

Guess you like

Origin blog.csdn.net/weixin_44498669/article/details/130009002