Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make a Unix direcotry?

Status
Not open for further replies.

JoshuaLCx

Programmer
Oct 24, 2001
7
US
Hey everybody!!!
The code that I have for the greeting card section is not working for one reason. The reason is that it asks for a unix directory that my cards will be stored in. Unfortunately, as you all may know from the previous thread, I know absolutely nothing about Unix!!! So if it is not to much trouble, could someone tell me how to make a unix directory so that I can get the greeting cards working so that I can start on the other sections of the website.


Thanks,
Joshua L. Cox

 
Enter

mkdir newdir

if you want a sub directory of you current working directory or you can fully qualify it e.g.

mkdir /usr/me/newdir

Enter

man mkdir

for more options.

Hope this helps. CaKiwi
 
Hi,
if you want to make folders and subfolder in one fail swoop enter the command:

mkdir -P /folder1/folder2/folder3

this will save you creating the folders individually.
 
Just a slight amendment the option to mkdir to create recursive directories is -p, ie lower case p. Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top