Book HomeLinux in a NutshellSearch this book

6.2. Shell Flavors

Many different Linux shells are available. This book describes the three most popular shells:

Most systems have more than one shell, and people will often use one shell for writing shell scripts and another for interactive use.

When you log in, the system determines which shell to run by consulting your entry in /etc/passwd. The last field of each entry calls a program to run as the default shell. For example:

Program Name Shell
/bin/sh Bourne-Again shell
/bin/bash Bourne-Again shell
/bin/csh C shell (or tcsh)
/bin/tcsh tcsh

You can change to another shell by typing the program name at the command line. For example, to change from bash to tcsh, type:

$ exec tcsh


Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.

This HTML Help has been published using the chm2web software.