LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Absolutely new to Linux-Question. (https://www.linuxquestions.org/questions/linux-newbie-8/absolutely-new-to-linux-question-636191/)

liko 04-18-2008 04:35 AM

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

pixellany 04-18-2008 04:47 AM

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.

blacky_5251 04-18-2008 04:48 AM

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.

liko 04-18-2008 07:45 PM

Thank you,also what can you please tell me what is ///? as ///root/Desktop?

pixellany 04-19-2008 07:18 AM

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?

onebuck 04-19-2008 09:18 AM

Hi,
Quote:

Originally Posted by liko (Post 3125776)
Thank you,also what can you please tell me what is ///? as ///root/Desktop?

I would suggest that you look at 'Rute Tutorial & Exposition' to get some good understanding and background. The next few links in my sig will help you a lot.

marquardl 04-19-2008 03:29 PM

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.