Chapter Summary

The shell is both a command interpreter and a programming language. As a command interpreter, the shell executes commands you enter in response to its prompt. When you use it as a programming language, the shell executes commands from files called shell scripts.

You typically run a shell script by giving its name on the command line. To run a script in this manner, you must have execute permission for the file holding the script. Otherwise the shell does not know that the script is executable. Alternatively, you can execute the script by entering bash, tcsh, or zsh followed by the name of the file on the command line. Either way you need to have read permission for the file.

Job control is not part of the Bourne Again Shell but ...

Get A Practical Guide to Red Hat® Linux® 8 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.