Chapter 16. Introduction to shell scripts

A shell script may contain one or contain several commands; there is no rule. Then why use a script for a couple of commands? You don’t have to if you don’t want to.

In this chapter we will cover:

  • reasons for using a shell script;

  • basic components of a shell script; and

  • how to run a shell script.

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.