gitmyhub

introduction-to-bash-scripting

HTML ★ 6.1k updated 4mo ago

Free Introduction to Bash Scripting eBook

A free, open-source ebook teaching Bash scripting from the basics to practical examples like log parsing, API calls, and automating tasks on remote servers.

BashHTMLMarkdownsetup: easycomplexity 1/5

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.

Where it fits