The UNIX prompt uses a $ symbol to indicate that your input is expected.
I was wondering why this symbol was chosen -- if there is a reason. Dollar just seems a little unexpected. A > would have been more suggestive in my opinion.
|
4
|
|||||||||||||||||
|
migrated from stackoverflow.com |
|
|
|
Let's explore a little:
Aha! So version 6 didn't have it. Version 7 was the first! Released in 1979. Happy? Hate to rain in your parade, but don't be :) Problem is that version 6 was one inspiring Unix. Look at the variants here. Can it be that the $ sign has a command prompt was not started in Version 7, but instead in one of these variants and then the idea incorporated into 7? At this point I got tired of hunting for operating systems documentation from a time when I was 6. This at least narrows it down considerably. We know Version 7 was the first bell Labs release to show the $ sign as a command prompt. All we need to be sure is that none of those Version 6 variants introduced it. One last thought though: Most probably, the best you can hope to get from the question "What is the origin of the UNIX $ (dollar) prompt?" is the name of the first unix shell introducing it. |
||||||||||||
|
|
|
Actually, the standard command-line prompt in Linux for a normal user account using Bourne, Bash or Korn shell is the dollar sign ($) while the root prompt is a hash mark (#). By contrast the traditional C shell prompt is a percent sign (%). If I were to guess, the $ is reminiscent of the word $hell, which is probably why it was chosen. |
||||||
|
|
|
The original Bourne shell prompt was a snail shell, "@". I remember this on UNIX 6th edition which, I believe, is before UNIX was sold commercially. So the switch to a $ sign could be related to commercialisation of UNIX, as Robert suggested, $hell. |
||||||
|
|
|
Sadly, I can't answer the question, but I can give you a few pointers. |
|||
|
|