Introduction to the Shell
THERE ARE 3 USES FOR THE SHELL:
- INTERACTIVE USE.
- CUSTOMIZATION OF YOUR UNIX SESSION.
- PROGRAMMING.
INTERACTIVE USE
- When the shell is used interactively, the system waits for you to type a command at the UNIX prompt. Your commands can include special symbols allowing you to abbreviate filenames or redirect input and output.
CUSTOMIZATION OF YOUR UNIX SESSION
- A Unix shell defines variables to control the behaviour of your Unix session. Setting those variables will tell the system, for example, which directory to use as your home directory, or the file in which to store your mail. Some variables are preset by the system; you can define others in startup files that are read when you log in. Startup files can also contain Unix commands or special shell commands. These are executed every time you log in.
PROGRAMMING
- Unix shells provide a set of special built in commands that let you create programs called shell scripts. Many Built-in commands can be used interactively like Unix commands, and Unix commands are frequently used in shell scripts. Scripts are usefull for executing a series of individual commands. This is similar to BATCH files in DOS Machines. Scripts can also execute commands repeatedly in a loop or conditionally.
Next'��`�[email protected]'��`�