Latest web development tutorials

Linux mkdir command

Linux command Daquan Linux command Daquan

Linux mkdir command is used to establish the name of the subdirectory dirName.

grammar

mkdir [-p] dirName

Parameter Description:

  • -p sure the directory name exists, does not exist on a build.

Examples

Under the working directory, the establishment of a subdirectory called AAA:

mkdir AAA

In the BBB under the working directory, create a subdirectory named Test. If the BBB original directory does not exist, create one. (Note: If this case add -p, and the original BBB directory does not exist, an error occurs.)

mkdir -p BBB/Test

Linux command Daquan Linux command Daquan