LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-03-2012, 09:18 PM   #1
boroz
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
Symbol at the end of a Shell Prompt


Hello guys.

I just wanted to ask you something (I'm a beginner).
So I noticed, at the end of a Shell Prompt there is a
dollar symbol ($). The next thing i noticed is that when you become the root user, the dollar symbol changes to a number symbol (#). Example:

"user@desktop:~$ su
root@desktop:~#"

Is this really the case? I mean, does "$" mean regular user and "#" root user? Thanks in advice
 
Old 01-03-2012, 09:35 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
To make this simple, yes, you are correct.

Cheers,

Josh
 
Old 01-03-2012, 10:15 PM   #3
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 45
Basically it is so you know if you are running commands as a user or root.
 
Old 01-04-2012, 05:18 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Expanding on the above answers ( & making it less simple ), they are correct, but it's just a convention. A prompt string (inc last char) can be set to be almost anything you want...
 
Old 01-04-2012, 07:09 AM   #5
boroz
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you all very much


Cheers
 
  


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
[SOLVED] Why i get a weird symbol at the end of a string? gerardorn Linux - General 8 12-01-2009 06:00 AM
passing parameters from a unix shell prompt into a windows cmd.exe prompt nano2 Programming 1 09-01-2009 12:26 PM
LXer: Shell tip: Set the shell prompt and themes in Linux Terminal LXer Syndicated Linux News 0 06-12-2007 04:02 AM
umm... command prompt? The world is coming to an end jmcdonald21 Linux - Newbie 6 02-10-2005 09:43 PM
how do i get away from the END prompt!? versaulis Linux - Software 3 02-09-2004 10:56 PM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration