pico Primer for Competitors - Shell Chapter - Got Shell? Section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|Q.4: What does `$` mean?|
|A.4: `$` is a separator. Everything before it is the computer generated prompt and everything after is the user typed command|
|Note on answer: Most example commands I show will start with `$` just as an indicator that the example command is ran in the shell.|
Oct 28, 2022
thanks @Exzou was wondering the difference between the '$' and the '#' on my kali linux shell but is root just like admin privileges?
Jan 2, 2023
Yes @jmorgan28-01. You're right.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
mmmmm not really.
$is a standard privilege user
#is root. No passwords or
The reason you often see a
$sign in an example is to show you which user you need to be in order for the script / command to work.
Example 1: Q0h313th@pico-2019-shelll1:~$
The dollar sign in example 1 indicates you're running your commands as a standard user and need elevated permissions for certain commands. When you use
sudoit is because you do not have root privileges. You use
sudoto temporarily elevate your privileges and then enter the accounts password. if your account looked like:
Example 2: root@pico-2019-shelll1:~#
[notice the pound (often referred to as a hashtag in mainstream media now) verses the $ dollar sign] In example 2 you are now running as root. A command which previously needed
sudofollowed by your accounts password scan now be entered without
sudoand it will run. This is obviously very dangerous, which is why the $ user and the need of
sudowith a password following was set up.
A more accurate and concise answer can be found here: