A Review of the Shell Prompt

Take a look at what happens when you log in to a UNIX system:

login: mori
Password:
Last login: Fri Mar 13 17:33:22 from :0
Sun Microsystems Inc.   SunOS 5.6       Generic August 1997
$ _

The messages that appear upon login differ from system to system. In the preceding example, after the login messages are complete, the system displays a dollar sign ($), and the cursor sits next to it, waiting for input. The dollar sign is called a prompt because it prompts the user to enter a command.

The program that generates the dollar sign prompt is the shell. The shell program is a command-line interpreter that enables the user to enter commands. The purpose of this chapter is to cover the rules for entering UNIX commands to the shell. ...

Get Practical UNIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.