« 12 things you need to know about PHP | Home | How to get the initial help on sudo to reappear in Ubuntu »
How to force mkdir to create a directory if there isn’t already one
By admin | September 3, 2008
If you’ve ever tried to make a directory if there isn’t one existing, you probably have bumped into the following error:
mkdir: cannot create directory `the_directory': File exists
To fix this, use this instead to suppress error and create parent directories if needed:
mkdir -p your_directory
For more information, see the mkdir page at Wikipedia.
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Linux | 143 Comments »
September 2nd, 2025 at 02:10
Hey! This iis my first comment here so I just
wanted to give a quick shout out and say I really enjoy reading through yourr posts.
Can you suggest any other blogs/websites/forums that cover the same topics?
Many thanks!
My weeb site; LDPlayer Intel/AMD兼容教程
September 2nd, 2025 at 05:42
I couldn’t reist commenting. Perfectly written!
my site :: ????????????? bj88
September 2nd, 2025 at 17:23
Thatt is very attention-grabbing, You’re an excessively skilled blogger.
I’ve joined your feed and ook forward to in quest
of more of your great post. Also, I’ve shared your web site in my
social networks
Also viit my web paage – Zoom绕过网络限制
September 3rd, 2025 at 08:51
Thanks for sharing your thoughts about hello88oo.com.
Regards
September 4th, 2025 at 03:09
This is a topic that’s close to my heart…
Best wishes! Exactly where are your contact details though?
Alsoo visit my web blog :: 谷歌浏览器 怎么另存为qw
September 4th, 2025 at 14:28
After I originally left a comment I seem to
have clicked on the -Notify me when new comments are added- checkbox and from now
on each time a comment is added I receive 4 emails with the same
comment. There has to be a means you are able to remove
me from that service? Kudos!
September 4th, 2025 at 14:38
If some one needs expert view regarding running a blog then i
recommend him/her to go to see this website, Keep up the pleasant job.
September 4th, 2025 at 14:48
I’m really enjoying the theme/design of your
site. Do you ever run into any internet browser compatibility problems?
A small number of my blog readers have complained about my
site not working correctly in Explorer but looks great in Safari.
Do you have any suggestions to help fix this problem?
September 4th, 2025 at 15:10
My developer is trying to convince me to move to .net from PHP.
I have always disliked the idea because of the expenses.
But he’s tryiong none the less. I’ve been using WordPress on several
websites for about a year and am concerned about switching to another platform.
I have heard very good things about blogengine.net.
Is there a way I can import all my wordpress content into it?
Any kind of help would be greatly appreciated!
September 4th, 2025 at 15:32
Hi there I aam so thrilled I found your website, I really found you by mistake, while I was browsing on Yahyoo
for something else, Anyways I am here now and would
just like to say cheers for a tremendous post and a all round entertaining blog (I also
love the theme/design), I don’t have time to go through it all at the
minute but I hsve saved it and also added in your RSS feeds,
so whenn I have time I will bee back to read a great deal more,
Please do keep up the great work.
Have a looik at mmy site; Breast Surgery
September 8th, 2025 at 03:00
Ahaa, its good discussion regarding this piece of writing here at
this weblog, I have read all that, so at this time me also commenting at this place.
September 8th, 2025 at 03:05
Nice blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple adjustements would really make my blog jump out.
Please let me know where you got your theme. Kudos
September 8th, 2025 at 03:11
I wanted to thank you for this good read!! I absolutely enjoyed
every little bit of it. I have you book-marked to check out new stuff you post…
September 8th, 2025 at 03:21
Article writing is also a fun, if you be familiar with afterward you can write if not it is difficult to
write.
September 8th, 2025 at 03:44
Hi just wanted to give you a brief heads up and let you know a
few of the pictures aren’t loading properly. I’m not sure why
but I think its a linking issue. I’ve tried it in two
different browsers and both show the same outcome.
September 8th, 2025 at 04:12
Just needed to thanks — this helped greater than you
probably know.
September 8th, 2025 at 04:16
Wonderful blog! I found it while surfing around on Yahoo News.
Do you have any suggestions on how to get listed
in Yahoo News? I’ve been trying for a while but I never seem
to get there! Thanks
September 8th, 2025 at 05:25
Hello! This post could not be written any better! Reading through this post reminds me of my old room mate!
He always kept chatting about this. I will forward this article
to him. Pretty sure he will have a good read. Thank you for
sharing!
September 8th, 2025 at 05:38
Hi there I am so thrilled I found your web site, I really found you by accident, while I
was researching on Digg for something else, Nonetheless
I am here now and would just like to say many thanks for a fantastic post
and a all round thrilling blog (I also love the
theme/design), I don’t have time to read it all at the minute but I have bookmarked it and also added in your RSS feeds,
so when I have time I will be back to read a
lot more, Please do keep up the superb job.
September 8th, 2025 at 05:42
Hey there! This is kind of off topic but I
need some help from an established blog. Is it difficult
to set up your own blog? I’m not very techincal but I can figure things out pretty fast.
I’m thinking about creating my own but I’m not sure where to start.
Do you have any ideas or suggestions? Appreciate it
September 8th, 2025 at 06:15
I was recommended this website by my cousin. I’m not sure whether this post
is written by him as no one else know such detailed about
my trouble. You’re incredible! Thanks!
September 8th, 2025 at 07:20
An outstanding share! I’ve just forwarded this onto a colleague who has been doing a little homework
on this. And he in fact ordered me lunch because I stumbled upon it for him…
lol. So allow me to reword this…. Thanks for the meal!!
But yeah, thanx for spending some time to discuss this topic here on your web page.
September 8th, 2025 at 07:26
Helpful information. Lucky me I found your site by accident,
and I’m surprised why this accident didn’t happened earlier!
I bookmarked it.
September 9th, 2025 at 03:19
Magnificent goods from you, man. I have understand
your stuff previous to and you’re just too magnificent.
I really like what you have acquired here, really like what you’re stating and the
way in which you say it. You make it enjoyable and you still take care of to keep it
smart. I cant wait to read far more from you. This is really a wonderful
website.
September 9th, 2025 at 03:21
Fantastic site. A lot of helpful information here. I’m sending it to
a few pals ans additionally sharing in delicious.
And obviously, thank you to your sweat!
September 9th, 2025 at 03:27
I’ve read some good stuff here. Definitely value bookmarking for revisiting.
I surprise how a lot attempt you set to create this sort of great informative website.
September 9th, 2025 at 04:55
Wow, that’s what I was exploring for, what a material! existing here at this webpage, thanks admin of this web page.
September 9th, 2025 at 13:08
Typically the easy truths hit hardest — thanks for preserving
it actual.
September 9th, 2025 at 17:31
Your site has shortly turn into one in every of my go-to assets.
Sustain the great work!
September 9th, 2025 at 21:31
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/09/03/how-to-force-mkdir-to-create-a-directory-if-there-isnt-already-one/ […]
September 11th, 2025 at 08:32
At this moment I am ready to do my breakfast, later than having my breakfast coming again to read more news.
September 11th, 2025 at 09:15
Amazing issues here. I’m very satisfied to look your article.
Thank you so much and I am having a look ahead to contact
you. Will you please drop me a e-mail?
September 11th, 2025 at 09:50
Remarkable! Its actually remarkable article, I have got
much clear idea about from this post.
September 11th, 2025 at 10:11
Greetings! I know this is kinda off topic but I was wondering
which blog platform are you using for this site?
I’m getting fed up of WordPress because I’ve had
problems with hackers and I’m looking at alternatives for another platform.
I would be fantastic if you could point me in the direction of a good platform.
September 11th, 2025 at 14:40
This really made me cease and think. Thanks for challenging my assumptions in a respectful way.
September 13th, 2025 at 00:38
I’m really impressed with your writing skills and also with the layout on your weblog.
Is this a paid theme or did you customize it yourself?
Either way keep up the excellent quality writing, it is rare to see a great
blog like this one these days.
September 13th, 2025 at 12:45
Fantastic beat ! I wish to apprentice even as
you amend your website, how could i subscribe for a blog web site?
The account helped me a applicable deal. I had been a
little bit acquainted of this your broadcast offered shiny transparent idea
September 13th, 2025 at 22:19
Hey! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I
ended up losing a few months of hard work due to no data backup.
Do you have any methods to prevent hackers?
September 14th, 2025 at 09:22
Hello, always i used to check weblog posts here early in the daylight,
as i love to find out more and more.
September 15th, 2025 at 03:14
I got much more from this than I expected — well completed!
September 15th, 2025 at 10:53
This website was… how do you say it? Relevant!! Finally I’ve found something
that helped me. Appreciate it!
September 15th, 2025 at 11:09
Hi, just wanted to say, I loved this blog post. It was helpful.
Keep on posting!
September 15th, 2025 at 11:30
Great delivery. Outstanding arguments. Keep up the amazing effort.