Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the $ mean in Linux?

Tags:

linux

terminal

I have to explain what the code below means

What does the dollar bit mean?

 user@Linux-003 ~ $
like image 957
James Turner Avatar asked Jan 06 '15 13:01

James Turner


2 Answers

For this particular case following code means:

Somebody with user name "user" has logged in to the machine with host name "Linux-003".

"~" - represent the home folder of the user, conventionally it would be /home/user/, where "user" is the user name can be anything like /home/johnsmith.

"$" - is just a sign of the shell prompt, means that shell is ready to accept commands, you can understand it as a separator after which, you can interact with a shell. Can also be "#" which shows that root is the user who's session is going on.

like image 65
Pavlo Slavinskyi Avatar answered Nov 11 '22 11:11

Pavlo Slavinskyi


Although most people don't know this, it actually stands for - Swag.

(It actually means "normal user" or "non-root user")

\# would dictate a root user.

like image 29
Jack hardcastle Avatar answered Nov 11 '22 12:11

Jack hardcastle