© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
J. VarmaPro Bash https://doi.org/10.1007/978-1-4842-9588-5_1

1. Hello, World: Your First Shell Program

Jayant Varma1  
(1)
Berwick, VIC, Australia
 

A shell script is a file containing one or more commands that you would type on the command line. This chapter describes how to create such a file and make it executable. It also covers some other issues surrounding shell scripts, including what to name the files, where to put them, and how to run them.

What Is a Shell Script?

A shell script is a file that contains one or more commands, which can be commands that you might type on a command line. The script file when executed (run) would run these commands one ...

Get Pro Bash: Learn to Script and Program the GNU/Linux Shell 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.