Linux `mkdir`: How to create a nested directory with one line
If Linux wants to automatically create a nested directory, you can add the "-p" parameter to mkdir. E.g:
mkdir -p pathLevel1/level2/level3
It can also be processed if multiple nested directories are created at the same time. E.g:
mkdir -p path1 pathLevel2/level2/level3 pathLevel3/level2
Comments
Post a Comment