DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Getting started

Identifying your shell

Once you have set your terminal type, the computer shows you a command prompt. This is where you type commands during the rest of your work session. Each time you press <Enter>, you see a new command prompt. The prompt you see depends on the login shell you are using.

All the time that you are working on the UNIX system, you are working within a shell. When you log in, you are automatically placed within a shell; this is called your login shell. Shells are both command interpreters and programming languages. Each command line you type is interpreted by the shell, which passes your requests to the appropriate program for processing.

For most of this tutorial, you will be using shells only as command interpreters. In other words, you will be typing commands at the prompt and seeing what they do.

In ``Customizing your environment'' you will be introduced to the concept of a shell script. These are text files that contain shell language programs.

There are three shells distributed with your SCO OpenServer system:

See ``Configuring and working with the shells'' for information about the differences among these shells and the wide variety of features each shell provides.

By default (unless someone has changed it), the Bourne and Korn shells show a dollar sign ($) as a command prompt. The C shell shows a percent sign (%) by default.

(You can change your prompt by editing a file that the computer reads when you log in. See ``Customizing your environment'' for instructions.)

If you cannot tell which shell you are using from the prompt, you can ask the computer by typing echo $SHELL. This says, ``tell me the value of the variable SHELL.'' The computer responds with an answer like:

   /bin/sh
The last part is the name of the shell, sh (the Bourne shell), and the first part is the directory in which it lives.


NOTE: If you are running multiple shells the value of the SHELL variable will not necessarily reflect the current shell and so this technique can only be relied upon when you first log in.


Next topic: Logging out
Previous topic: Changing your password

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003