Skip to main content

Bash

This Bash Beginner Series teaches you the basics of Bash shell script in carefully created chapters. All the chapters include scripting examples and exercise that will help you in understanding the concept. If you follow all the bash tutorials in the given order, you'll be able to start writing your own bash scripts by the end of it.

A collection of 11 posts

Bash scripting
Bash

Bash Fundamentals

Get started with Bash scripting through practical, hands-on examples, then test what you've learned with exercises after every chapter. Free, no signup needed.

ยท Ahmed Alkabary

Automation with Bash scripts
Bash

Chapter 10: Automation With Bash

Youโ€™re either the one that creates the automation, or youโ€™re getting automated.

ยท Ahmed Alkabary

Using functions in bash shell scripting
Bash

Chapter 9: Using Functions in Bash

Never rewrite code, use functions instead!

ยท Ahmed Alkabary

Using far, while and do while loops in bash scripts
Bash

Chapter 8: Using Loops in Bash

Loops are essential for any scripting language. Learn for, while and until loops with examples in this chapter of Bash Beginner Series.

ยท Ahmed Alkabary

if else in bash
Bash

Chapter 7: Decision Making With If Else and Case Statements

In this chapter of bash beginner series, you'll learn about using if-else, nested if else and case statements in bash scripts.

ยท Ahmed Alkabary

String manipulation in Bash scripting
Bash

Chapter 6: String Operations in Bash

Let's pull some strings and learn to handle strings in bash scripts.

ยท Ahmed Alkabary

Arithmetic operation in bash scripts
Bash

Chapter 5: Using Arithmetic Operators in Bash Scripting

Learn to perform arithmetic operations like addition, subtraction, multiplication and division in bash scripts.

ยท Ahmed Alkabary

Using array in Bash
Bash

Chapter 4: Using Arrays in Bash

Got too many variables to handle? Use an array in your bash script.

ยท Ahmed Alkabary

Passing arguments to bash scripts
Bash

Chapter 3: Passing Arguments to Bash Scripts

In the third part of the Bash Beginner Series, you'll learn to pass arguments to a bash shell script. You'll also learn about special bash shell variables.

ยท Ahmed Alkabary

Variables in Bash scripting
Bash

Chapter 2: Understanding Variables in Bash Shell Scripting

In the second entry of the bash beginner series, learn about using variables in your bash shell scripts.

ยท Ahmed Alkabary

Linux Bash Scripting
Bash

Chapter 1: Create and Run Your First Bash Shell Script

Take the first step towards shell scripting. Learn what it takes to create a simple bash script and how to run it.

ยท Ahmed Alkabary