That dollar sign is a prompt that the shell is ready to accept input. Note that if you are logged in as a superuser (usually root), the prompt will be a #.The dollarsign ($) ahead of df in your second example is part of the (sorry about this) DOS prompt, right? It's not some secret code I need to learn about?
To expand things a bit... There are several different user interface shells that can be used. Which one you get--by default--is specified in your entry in the system file /etc/passwd. Among the possible shells are: sh (Bourne shell, goes back to Bell Labs unix), csh (C shell, developed at UC Berkeley for bsd unix), and bash (Bourne Again Shell, improved Bourne shell, widely used on Linux systems...including RPiOS). There are others. You could even write your own.
Statistics: Posted by W. H. Heydt — Mon Oct 07, 2024 4:21 am