mkdir -P /usr/src/redhat/SPECS

can somebody please define mkdir in great detail.
thanks
aasheeAsked:
Who is Participating?
 
simon3270Commented:
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
 
JermTheWormCommented:
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
 
upanwarCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.