LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-18-2008, 04:35 AM   #1
liko
LQ Newbie
 
Registered: Feb 2007
Location: OZ/Surburbia
Distribution: Slax-/DSL/knoppix
Posts: 7

Rep: Reputation: 0
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
 
Old 04-18-2008, 04:47 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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.
 
Old 04-18-2008, 04:48 AM   #3
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 4&5, Fedora 10, CentOS 5.4, IPCop
Posts: 569

Rep: Reputation: 55
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.
 
Old 04-18-2008, 07:45 PM   #4
liko
LQ Newbie
 
Registered: Feb 2007
Location: OZ/Surburbia
Distribution: Slax-/DSL/knoppix
Posts: 7

Original Poster
Rep: Reputation: 0
Question

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

Last edited by liko; 04-18-2008 at 10:19 PM.
 
Old 04-19-2008, 07:18 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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?
 
Old 04-19-2008, 09:18 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,292
Blog Entries: 3

Rep: Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447Reputation: 1447
Hi,
Quote:
Originally Posted by liko View Post
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.
 
Old 04-19-2008, 03:29 PM   #7
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
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

Last edited by marquardl; 05-01-2008 at 04:00 AM.
 
  


Reply


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
need absolutely an answer! [ITA]freeware General 8 09-19-2006 03:33 PM
Absolutely one of the worst commands in Linux! ramram29 Linux - General 1 08-28-2006 12:45 PM
Absolutely no clue tuananhbirm Mandriva 2 06-05-2005 11:48 AM
Which of these packages do I absolutely need? Can I remove them? Erik_the_Red Ubuntu 3 06-03-2005 01:07 PM
Mandrake 9.1 Absolutely GARBAGE! peesnake Linux - General 14 08-13-2003 10:36 PM


All times are GMT -5. The time now is 02:05 PM.

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