Solved

mkdir -P /usr/src/redhat/SPECS

Posted on 2011-02-17
3
474 Views
Last Modified: 2012-08-14
can somebody please define mkdir in great detail.
thanks
0
Comment
Question by:aashee
3 Comments
 
LVL 19

Accepted Solution

by:
simon3270 earned 500 total points
ID: 34915630
The above command will make the /usr/src/redhat/SPECS directory, creating any directories required (e.g. if /usr/src exists but /usr/src/redhat doesn't, it will create /usr/src/redhat then create /usr/src/redhat/SPECS)

The flag is -p, not -P.

With "-p" there is no error if the directory already exists (without "-p", mkdir will print an error message if the directory already exists).
0
 
LVL 5

Expert Comment

by:JermTheWorm
ID: 34915644
try 'man mkdir' but I wonder what you are trying to do that you need it defined, when you are fiddling with src, sounds like dangerous ground if you don't even know what mkdir does?
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34916125
I agree with above comment try to "man mkdir".

the option is -p, --parents , not -P

it meanes "no error if existing, make parent directories as needed"

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question