LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cd to Folder on the Same Level as root. (https://www.linuxquestions.org/questions/linux-newbie-8/cd-to-folder-on-the-same-level-as-root-465777/)

thammerlund 07-20-2006 12:32 AM

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
server/admin

NOT
server/root/admin

Does anyone know how to do this?
Thank you,
Tom

prozac 07-20-2006 01:03 AM

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.

pixellany 07-20-2006 01:13 AM

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".......;) )


All times are GMT -5. The time now is 06:46 PM.