LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-12-2012, 07:57 AM   #1
puni
LQ Newbie
 
Registered: Apr 2012
Location: india
Posts: 2

Rep: Reputation: Disabled
Help me


i cant create a directory hierarchy using the following command mkdir -p a/b/c/d in /Home directory . but it works fine in other directories ...
 
Old 04-12-2012, 08:01 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Do you have the proper permissions to create the directories?
Error messages?

Kind regards
 
Old 04-12-2012, 08:07 AM   #3
puni
LQ Newbie
 
Registered: Apr 2012
Location: india
Posts: 2

Original Poster
Rep: Reputation: Disabled
yes i have executed the command as the root user . when i execute the command, i did not get any error message or any other messages; just like on successful execution of 'mkdir' command. but later on execution of ls command, i found out that no such directories were created.

Last edited by puni; 04-12-2012 at 08:11 AM.
 
Old 04-12-2012, 08:08 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Error messages?

Kind regards
 
Old 04-12-2012, 08:00 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Also, do this
Code:
mkdir -p /home/a/b/c
echo $?
the echo cmd rtns the status (& possibly a msg) about the last cmd run.
Incidentally, given *nix is case sensitive, are you mixing home & Home ?
 
  


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




All times are GMT -5. The time now is 10:46 AM.

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