Shells in UNIX

The command interpreter in MPE is built-in: with UNIX it's just another program. As a consequence, UNIX has many competing command interpreters which are collectively known as shells.

The most common three shells are

Your startup shell is specified by a program name as the last field in your /etc/passwd entry. For example, /bin/csh means run csh in the /bin directory.

One confusing thing for new users is that some commands, such as printenv, are built into a specific shell, while others such as rm and cp are just programs in the /bin or /usr/bin directories. Commands that are implemented as external programs are the same in all shells, but require some extra system overhead to create a separate process. Built-in commands usually do not have their own man pages, so you have to do man ksh and read the description of the Korn shell.