Repolode
bobbyiliev

bobbyiliev/introduction-to-bash-scripting

A free, open-source eBook that teaches Bash scripting basics and how to automate everyday SysOps, DevOps and development tasks.

Stars
6,369
Forks
671
Open issues
10
Last commit
26 days ago

What is it?

This is an open-source introduction to Bash scripting, distributed as an ebook. It covers the foundations of writing Bash scripts, including variables, user input, arguments, arrays, conditionals, loops and functions, before moving on to practical examples.

The first 13 chapters focus on core scripting fundamentals, and the remaining chapters present real-world scripts. Topics include building interactive menus, running scripts across multiple remote servers, working with JSON using jq, calling the Cloudflare API, parsing NGINX and Apache access logs, sending email with SSMTP, generating passwords and redirecting input and output.

The book is aimed at developers, system administrators, DevOps engineers and Linux enthusiasts who want to combine Linux commands into scripts that automate repetitive work. It is available as PDF (dark and light versions) and ePub, and a mini video course based on the first 12 chapters is also available.

Key features

  • 01Covers core Bash syntax including variables, conditionals, loops and functions
  • 02Includes practical scripts for log parsing, password generation and email sending
  • 03Shows how to run scripts across multiple remote servers
  • 04Demonstrates working with JSON via jq and the Cloudflare API
  • 05Available as PDF in dark and light themes, and as ePub

Use cases

  • Learning Bash scripting from scratch as a developer or sysadmin
  • Automating repetitive server maintenance and deployment tasks
  • Parsing NGINX or Apache access logs with shell tools
  • Building simple interactive command-line menus for team scripts

Quick start

  1. 1

    Download the eBook as a PDF (dark or light mode) or ePub from the Download section

  2. 2

    Open the chapters in the repository, starting with the About the book and Introduction chapters

Topics

FAQ

What is introduction-to-bash-scripting?
A free, open-source eBook that teaches Bash scripting basics and how to automate everyday SysOps, DevOps and development tasks. This is an open-source introduction to Bash scripting, distributed as an ebook. It covers the foundations of writing Bash scripts, including variables, user input, arguments, arrays, conditionals, loops and functions, before moving on to practical examples.
Is introduction-to-bash-scripting free to use? What license does it have?
introduction-to-bash-scripting is open source under the MIT license. Check the license terms before using it in commercial products.
Is introduction-to-bash-scripting still maintained?
Actively maintained. The last commit to introduction-to-bash-scripting was on Sep 28, 2026.
What can I use introduction-to-bash-scripting for?
Learning Bash scripting from scratch as a developer or sysadmin Automating repetitive server maintenance and deployment tasks Parsing NGINX or Apache access logs with shell tools Building simple interactive command-line menus for team scripts
How do I install introduction-to-bash-scripting?
Download the eBook as a PDF (dark or light mode) or ePub from the Download section Open the chapters in the repository, starting with the About the book and Introduction chapters
Where can I get introduction-to-bash-scripting?
The source code and installation instructions are on GitHub: https://github.com/bobbyiliev/introduction-to-bash-scripting

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects