LinuxQuestions.org
Visit Jeremy's Blog.
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 01-24-2012, 01:04 PM   #1
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Rep: Reputation: 7
Why couldn't I create a subdirectory via terminal?


In Ubuntu, I went to the Home folder via the terminal and executed
Code:
mkdir SharedFolder
Why couldn't I create this subdirectory? I was able to create a subdirectory called SF. Can you tell me why this is?

Last edited by Advice Pro; 01-24-2012 at 01:48 PM.
 
Old 01-24-2012, 01:08 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
It would actually help to see which error-message you got.
 
1 members found this post helpful.
Old 01-24-2012, 05:35 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Regular users usually don't have permission to create directories in /home/, they can only modify their home directories (and a few other special directories). Chances are you just need to add a "sudo" in front of the command, ie:
Code:
sudo mkdir /home/SharedFolder
 
Old 01-25-2012, 12:45 PM   #4
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by TobiSGD View Post
It would actually help to see which error-message you got.
I don't remember and nothing happened when I tried,i.e. no ouput nor folder:

Code:
sudo mkdir /home/SharedFolder
 
Old 01-25-2012, 02:22 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by Advice Pro View Post
I don't remember
Well, then try it again. Isn't so hard is it?
 
Old 01-25-2012, 04:09 PM   #6
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Original Poster
Rep: Reputation: 7
I again tried:
Code:
mkdir SharedFolder
and the folder was created, while this didn't do anything:
Code:
sudo mkdir /home/SharedFolder

Last edited by Advice Pro; 01-25-2012 at 06:12 PM.
 
  


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
how to create a pseudo terminal jayasekar Programming 3 12-11-2009 09:18 AM
How do I create mount points using the terminal? nosloj Linux - Newbie 4 11-12-2009 04:23 PM
Create subdirectory with Nautilus Cichlid Linux - General 4 02-05-2008 02:28 PM
How to create our own terminal in Linux sreeramabsc Programming 1 02-02-2006 10:23 AM
need help with a script to automatically create a subdirectory verbatim Linux - Newbie 6 04-26-2005 01:51 AM


All times are GMT -5. The time now is 10:39 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