Can anyone explain the Ubuntu's bash prompt?
It's basically username@box:~$ but the part that confuses me is $. Is it just a letter that can be of preference, or it has some actual meaning?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
$" was the default prompt string in
sh, the Bourne shell. It doesn't have any special meaning besides showing that you are a normal user (the default prompt for root is "
bash ("Bourne Again" shell) is a derivative of
sh, it continues to use
# as part of its default prompt. Take a look at http://www.gilesorr.com/bashprompt/howto/x170.html and
bash's manual page for information on how to customize it.