Skip to main content

Bash Basics

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 Basics

Bash Scripting

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

· Ahmed Alkabary

Automation with Bash scripts
Bash Basics

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 Basics

Using Functions in Bash

Never rewrite code, use functions instead!

· Ahmed Alkabary

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

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 Basics

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 Basics

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 Basics

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 Basics

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 Basics

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 Basics

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 Basics

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