Skip to main content

Bash Scripting

Get started with Bash Shell script learning with practical examples. Also test your learning with practice exercises.

Start Course

Course content

  1. Create and Run Your First Bash Shell Script
  2. Understanding Variables in Bash Shell Scripting
  3. Passing Arguments to Bash Scripts
  4. Using Arrays in Bash
  5. Using Arithmetic Operators in Bash Scripting
  6. String Operations in Bash
  7. Decision Making With If Else and Case Statements
  8. Loops in Bash
  9. Using Functions in Bash
  10. Automation With Bash

Whether you are a beginner or seasoned Linux user, you cannot escape Bash.

From school curriculum to sysadmin tasks, from setting up your homelab to working as DevOps, Bash scripting is present everywhere.

It is time that you get familiar with the essentials of bash shell scripting, and this course intends to do the same.

📶 Difficulty level: Beginner
⏳ Time to complete: Approx. 3 hours
📋 Prerequisite: Absolute basics of getting around Linux terminal

What will you learn?

In this Bash course for beginners, you'll learn the following:

  1. Creating and running Hello World bash script
  2. Understanding variables
  3. Passing arguments to your bash scripts
  4. Using bash arrays
  5. Doing mathematical calculations in bash
  6. Manipulating strings
  7. Adding conditional logics in bash
  8. Creating loops
  9. Using functions
  10. Automating some small but practical tasks with bash
💡
Each lesson in this course has practice exercises, too, so that you can test what you just learned.

How to use this course?

You can simply read the text and see things in action.

Although, it is highly recommend that you follow the instructions and steps on your own system. That will be the best approach here.

The course is divided into chapters. The chapters of the series are always visible in the left sidebar and you can easily switch between them. The sub-sections of a chapter are located in the right sidebar.

The next and previous chapter navigation are also present at the bottom of each chapter.

Each chapter has sample examples and practice exercises to test your learnings.

For any doubts, you can always use the comment section available under each chapter.

Let's start scripting bash!

About the author

Ahmed Alkabary Ahmed Alkabary
Updated on Aug 18, 2025