| UNIX Tutorial | 1. Introduction | ||||||
|
Before moving on to using UNIX, let's briefly discuss what it is. A computer uses a set of programs, generally called the operating system, to manage its hardware resources (memory, disks, displays, input devices, etc.) on behalf of the user. UNIX is an example of such a system. It was originally developed as a research project at AT&T Bell Labs in 1969. There are several characteristics that distinguish UNIX from other operating systems you may be familiar with (e.g., MacOS versions 9.x and earlier and the various incarnations of Microsoft Windows): About the Shell You will interact with UNIX through a special program called the shell. The shell prompts you for commands and hands these off to the operating system to be executed after you have typed them in. Commands are composed of two parts: the name of the command itself and arguments. Certain arguments, called options (usually introduced by the "-" character), alter the behavior of the command in a particular way while other arguments specify the entities upon which the command operates (e.g., names of files, computers, users). In the following example:
ls -l myfile
"ls" is the name of the command and "-l" and myfile" are arguments.
"-l" is an option which modifies the behavior of the "ls" command.
Not all commands require options or arguments; many have intelligent
defaults when none are specified.
The UNIX shell comes in two major flavors: the Bourne shell, sh , and the C shell, csh. Other popular shells are derived from these (e.g., ksh, bash, tcsh). Each shell uses a particular character (or string of characters) to prompt the user for commands; not surprisingly, this is known as a shell prompt. Exercises in this tutorial show the default shell prompt for csh, the "%" character. They will work equally well with most other shells. Exercise 1.1 Pour a beverage of your choice (perferably cold and bubbly) and relax. This stuff is easy, and you might even enjoy it! |
|||||||
|
< previous | table of contents | next > |
|||||||