Create Directory Unix
To create directory or sub-directory inside a directory you can use “mkdir” command with right permission. If you try to create directory without permission you will get permission denied error. To create directory with super user access please use “sudo” as shown in example:
- If you want to create sub-directory name “apps” inside root directory use below:
- If you want to create multiple sub-directory name “test” “test1” “test2” inside root directory please use below:
- If you want to create directory structure name /project/MyTestProject/Files for your project please use below:
$ sudo mkdir -p /project/MyTestProject/Files
- For more details please visit Wikipedia