[Solved] Creating directories | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

[Solved] Creating directories

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-22-2014
chinababy chinababy is offline
Registered User
 
Join Date: Mar 2014
Last Activity: 25 March 2014, 6:38 PM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
[Solved] Creating directories

Hi how can i create 2 directories in two different directories ($HOME and $PWD) with 1 command?
dir 1 in $HOME and dir2 in $PWD
Sponsored Links
    #2  
Old 03-22-2014
alister alister is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 11 June 2014, 8:40 PM EDT
Posts: 3,231
Thanks: 179
Thanked 973 Times in 789 Posts
This sounds like homework. If not, please explain why you must use a single command.

Regardless, refer to the mkdir man page.

Regards,
Alister
Sponsored Links
    #3  
Old 03-22-2014
chinababy chinababy is offline
Registered User
 
Join Date: Mar 2014
Last Activity: 25 March 2014, 6:38 PM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

Code:
mkdir $HOME/dir1 $PWD/dir2

ty for the answer

Last edited by Scott; 03-22-2014 at 02:59 PM.. Reason: Code tags
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Creating directories within a directory? gangsta Homework & Coursework Questions 6 10-13-2010 02:34 PM
Creating Directories ndnkyd Shell Programming and Scripting 3 04-07-2010 11:54 AM
help needed with creating challenging bash script with creating directories I-1 Shell Programming and Scripting 7 04-29-2009 06:33 AM
creating directories on the same box vivek_damodaran HP-UX 3 11-14-2007 03:06 PM
creating directories carlvernon UNIX for Dummies Questions & Answers 3 06-01-2006 02:45 PM



All times are GMT -4. The time now is 05:12 PM.