Absolutely new to Linux-Question.
can some please explain this to me,if I'm already root & i "pwd" it shows "/root".But if i "cd" to "/" i end up "bash/#" when i was "bash~#".What is this? wasn't i already root?.what is the diff? sorry if this baby stuff to you thanks
|
There are a minimum of two definitions of "root":
1. The root of the filesystem (AKA "/") 2. The user named "root", who has full admin powers (and who has their home directory at /root) "~" is shorthand for "my home directory"--thus when you cd to /root, you are in "~". Note that "cd" with no arguments will also take you home. |
When you do "cd /", follow it with "ls -l". In the list of files and directories, you will see an entry called "root". "/" and "/root" are often referred to using the same words, but they are different places on the disk. "/" is the root directory as in tree roots. "/root" is the root user's home directory, which differs from normal users who live in /home.
|
Thank you,also what can you please tell me what is ///? as ///root/Desktop?
|
If I do "cd ///root", I still wind up in /root. I think the extra /s are just ignored. In what context are you seeing this construction?
|
Hi,
Quote:
|
extra slashes
Extra slashes are simply ignored. Both on a BASH shell and (most) web browsers.
http://www.linuxquestions.org/// will lead to the same page as http://www.linuxquestions.org/ KDE Programs Naming Convention |
All times are GMT -5. The time now is 11:19 PM. |