Learn to write Bash scripts that automate repetitive Linux tasks like file management and log parsing.
Follow the companion YouTube crash course while reading the ebook chapters on GitHub for free.
Contribute a new chapter or fix an error via a standard GitHub pull request.
Download the ebook as PDF or ePub to read offline on an e-reader or tablet.
No install needed, read chapters directly on GitHub or download as PDF/ePub, only requires a Linux or macOS terminal to run examples.
This repository is a free, open-source ebook called Introduction to Bash Scripting. It teaches the basics of writing Bash scripts, which are small programs that run in a Linux or macOS terminal to automate repetitive tasks. The book is aimed at developers, system administrators, and anyone who works with Linux and wants to stop doing the same manual steps over and over. The content is organized into about 24 chapters. The first 13 chapters build foundational knowledge: how Bash scripts are structured, how to use variables, how to accept input from a user, how to write loops and conditionals, how to create functions, and how to debug scripts. The remaining chapters show practical examples, including writing scripts that run on multiple remote servers, parsing log files from web servers, working with JSON data, calling web APIs, generating passwords, and sending emails. You can download the book as a PDF in a dark or light theme, or as an ePub file for reading on an e-reader. Each chapter is also available as a Markdown file in the repository, so you can read it directly on GitHub without downloading anything. The author, Bobby Iliev, also produced a short video crash course covering the first twelve chapters, available as a YouTube playlist. The ebook has a companion website as well. The project accepts community contributions. If you spot an error or want to add a chapter, the repository follows a standard open-source pull request workflow. The book is licensed under an open license, and the source files are written in Markdown.
← bobbyiliev on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.