Scripts

The third method of creating your own commands with Bash is to put them in a script: a file that you can arrange for bash to interpret and execute from the filesystem by name.

What a "script" means to Bash can mean many different things depending on context. In this book, we'll focus on scripts stored as executable program files on our filesystem, external to the Bash process itself.

Get Bash Quick Start Guide 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.