|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
HELP !!! mkdir format
Using only one command, what is the format to create multiple directories with sub directories and seperate permissions for each?
If that was too easy, I need to do the same for several files going to different locations with their own independent permissions too. |
|
#2
|
|||
|
|||
|
You can't create more than one directory in one command. You could, however, execute multiple commands at once-- eg) "mkdir -m 0755 outer && mkdir -m 0555 outer/inner" etc. As for the files, do you want files copied from somewhere, or blank files created, etc???
|
|
#3
|
|||
|
|||
|
If you want to create a directory without creating the intermediate directories then you can use
mkdir -p /1/2/3/4/5 where all the intermediate directories 1, 2, 3 and 4 will be automatically created for you. As far as permissions are concerned it will be (0777 & umask). I don' t think of any such command which can change the permissions also for the directories in a single command. You need to change them individually, if you want separate permissions for them.
__________________
Regards JK |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > HELP !!! mkdir format |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|