Bash Scripting Fundamentals

A 47-part series covering bash, linux commands and scripting

By Dejan Panovski

Updated on

47 parts

Bash Scripting Fundamentals

Bash is the default shell on most Linux distributions and macOS. Learning to write Bash scripts is an essential skill for anyone working with Linux systems, whether you’re a system administrator, developer, or DevOps engineer.

This series will guide you from the basics of Bash scripting to more advanced skills. You’ll learn how to automate tasks, process text, handle user input, and write maintainable scripts.

You can also use the Bash cheatsheet as a quick reference while reading the series.

What You’ll Learn

  • Getting Started - Shebang, running scripts, comments, and shell configuration
  • Variables & Data - Working with strings, numbers, arrays, and environment variables
  • Input/Output - Reading input, writing files, and handling redirections
  • Control Flow - Conditionals, comparisons, and pattern matching
  • Loops - For, while, until loops and controlling loop execution
  • Functions & Advanced - Reusable code, exit codes, background processes, and productivity tips

Prerequisites

  • Basic familiarity with the Linux command line
  • Access to a Linux or macOS terminal (or WSL on Windows)

Each article includes practical examples you can run on your own system. By the end of this series, you’ll be able to write scripts that automate your daily tasks and solve real-world problems.

Articles