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 |
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.
|
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 05:47 PM. |