Linux - mkdir


mkdir -m 755 ./people

To create a folder with specific permissions:

mkdir -m u=rwx,go=rx ./places

To create a folder and parent folder(s) with one line:

mkdir -p ./ab/c

To create multiple folders and sub-folders:

mkdir -p src/{html,images,js,scss} build/{html,images,js,css}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License