LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 06: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, 07:01 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

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

Kind regards
 
Old 04-12-2012, 07: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 07:11 AM.
 
Old 04-12-2012, 07:08 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Error messages?

Kind regards
 
Old 04-12-2012, 07:00 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:24 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
Open Source Consulting | Domain Registration