UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old November 29th, 2003, 07:51 PM
hal hal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 hal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old November 29th, 2003, 09:17 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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???

Reply With Quote
  #3  
Old December 6th, 2003, 10:21 PM
jayakhanna jayakhanna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: India
Posts: 61 jayakhanna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > HELP !!! mkdir format


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway