home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 2.1 Alphabetical Summary of Commands Chapter 3 Next: 3.2 Purpose of the Shell
 

3. The UNIX Shell: An Overview

For novice users, this section presents basic concepts about the UNIX shell. For advanced users, this section also summarizes the major similarities and differences between the Bourne, Korn, and C shells. Details on the three shells are provided in Sections 4 and 5.

The following topics are presented:

  • Introduction to the shell

  • Purpose of the shell

  • Shell flavors

  • Common features

  • Differing features

3.1 Introduction to the Shell

Let's suppose that the UNIX operating system is a car. When you drive, you issue a variety of "commands": you turn the steering wheel, press the accelerator, or press the brake. But how does the car translate your commands into the action you want? Through the car's drive mechanism, which can be thought of as the car's user interface. Cars can be equipped with front-wheel drive, rear-wheel drive, four-wheel drive, and sometimes combinations of these.

The shell can be thought of as the user interface to UNIX, and by the same token, several shells are available in UNIX. Some systems provide only one shell. Many provide more than one for you to choose from. Each shell has different features, but all of them affect how commands will be interpreted and provide tools to create your UNIX environment.

The shell is simply a program that allows the system to understand your commands. (That's why the shell is often called a command interpreter.) For many users, the shell works invisibly-"behind the scenes." Your only concern is that the system do what you tell it to do; you don't care about the inner workings. In our car analogy, this is comparable to pressing the brake. Most of us don't care whether the "user interface" involves disk brakes or drum brakes, as long as the car stops.


Previous: 2.1 Alphabetical Summary of Commands UNIX in a Nutshell: System V Edition Next: 3.2 Purpose of the Shell
2.1 Alphabetical Summary of Commands Book Index 3.2 Purpose of the Shell

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System