next up previous contents
Next: Command Summary Up: UNIX/Linux Shell Commands Previous: Contents   Contents

The Shell

The UNIX and Linux command interpreter or shell is the program users interact with in a terminal emulation window. The terminal emulation window can be one in the workstation's Graphical User Interface - gnome-terminal on Linux or dtterm on Solaris. Alternatively, it can be an application such as telnet, secure shell client or PuTty on a Windows PC that's logged into Linux or UNIX over the network.

The shell used in the School of Computer Science & Informatics is bash - Bourne Again Shell. There are other shells available such as the Bourne Shell, the C-Shell and the TC-Shell, and you can choose to use a different shell if you prefer. They all have similar characteristics but each has its own particular features. This Note assumes you are using bash.

Bash has the following features:

See the manual page on bash for more details (type man bash).

Bash has an additional mechanism which allows you to recall and edit previous commands using the keyboard up-arrow key \fbox{$\uparrow$}. If you press up-arrow, the last command re-appears on the terminal. Press up-arrow again to get earlier commands. To rerun the command, press \fbox{RETURN}. To amend the command before rerunning it, use the delete key to remove characters from the end or use the back-arrow \fbox{$\leftarrow$} to reposition the cursor to delete or insert characters within the command.


next up previous contents
Next: Command Summary Up: UNIX/Linux Shell Commands Previous: Contents   Contents
© Robert Evans, Cardiff School of Computer Science & Informatics, Cardiff University, 2009-09-21