Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-20-2006, 01:32 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 22

Rep: Reputation: 15
cd to Folder on the Same Level as root.

I have what may seem like a strange question. I want to make a directory on the same level as the root directory.

For example, I want a folder/directory "admin".

Using Samba I want the path to look like


Does anyone know how to do this?
Thank you,
Old 07-20-2006, 02:03 AM   #2
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
login as root (use su -) and just create the directory (mkdir /admin). If i understand you correctly you want the new directory under / and not some /root or /home or /usr or anywhere else.
Old 07-20-2006, 02:13 AM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Two kinds of root makes things confusing.

The "root" of the filesystem is the highest level on the tree, and has the nondescript name of "/". By contrast the root user has the username of "root", and has a directory mounted at the root of the filesystem--namely "/root". So you might say that root's home is at /--which is the root of the file system. Therefore, root's home is at the root.

Confused yet??

You want to make a directory at the top of the tree, which is "/". Two choices:
cd to "/", then "mkdir <dirname>"
"mkdir /<dirname>"
(much simpler if you avoid the "r word"....... )


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
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
Virtually moving IMAP Folders from mail/ to root level fishsponge Linux - Software 0 06-21-2005 05:53 AM
Oops! I did a chown -R root from the '/' level Wujen Linux - Newbie 4 04-06-2005 06:20 PM
Changing Permission - Root Level? Garoth Linux - Software 4 02-24-2005 08:54 PM
Auto Login Root In Level 3 dezeque Linux - General 1 04-27-2004 09:25 PM > Forums > Linux Forums > Linux - Newbie

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

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