UNIX Shell Scripting Basics

What is a Shell ?

The shell is the program that waits for you to type in a Unix command and then press the return key. Then the shell handles the execution of your command.

Shell Architecture
Shell Architecture

Common Shells

  • C Shell (/bin/csh)
  • Turbo C Shell (/bin/tcsh)
  • Korn Shell (/bin/ksh)

What is a Shell Script ?

In general term a shell script is :

  • A Text File
  • With Instructions
  • Executable