Detailed linux command mkdir

  
                  

Name: mkdir Permissions: All users with appropriate permissions in the current directory Usage: mkdir [-p] dirName Description: Create a subdirectory named dirName. Parameters: -p Make sure the directory name exists. If it does not exist, create one. Example: In the working directory, create a subdirectory called AAA: mkdir AAA In the BBB directory under the working directory, create a subdirectory called Test. If the BBB directory does not exist, create one. (Note: If you do not add -p in this example, and the original BBB directory does not exist, an error occurs.)

mkdir -p BBB/Test

Copyright © Windows knowledge All Rights Reserved