LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2011, 11:55 AM   #1
echolswoman
LQ Newbie
 
Registered: Aug 2011
Location: South Haven, MI
Posts: 2

Rep: Reputation: Disabled
Linux command


define mkdir -p command and what does it do?
 
Old 08-14-2011, 12:04 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
See
Code:
man mkdir
Kind regards
 
Old 08-14-2011, 12:07 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
From the LQ Rules:
Quote:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
 
Old 08-14-2011, 02:25 PM   #4
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Rep: Reputation: 34
I assume that you are unable to understand the man page ! But it is recommended to try out and figure out the elementary stuff on your own :-
Quote:
sudo mkdir -p /nk/helo/test
this will create all the parent dirs as reqd i.e if there was the /nk dir to start with, then it will create a helo dir and then the test dir. The following command will complain :-
Quote:
sudo mkdir /nk/helo/test
Note the missing -p switch
Quote:
mkdir: cannot create directory `/nk/helo/test': No such file or directory
bye
nishith
 
Old 08-14-2011, 04:28 PM   #5
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Quote:
Originally Posted by echolswoman View Post
define mkdir -p command and what does it do?
How can this be anything other than homework???

Connect to a server and do this:
Code:
man mkdir
/-p
Read the answer.
Move on to the next question.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How does Linux cp command determine the source and destination locations in command? linuxman2 Linux - General 4 04-14-2011 08:13 PM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 03:14 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 07:30 PM
Translating windows pscp command to linux scp command help robward Linux - General 2 01-17-2008 07:02 AM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration