Learn Bash Scripting
This is a free tutorial series that will teach you the basics of Bash shell scripting.
Each chapter is written in a hands-on approach. Which means you should be able to follow the examples on your Linux system. There are sample exercises to test your learning at the end of each chapter.
What will you learn?
There are nine sections in this bash scripting tutorial. You'll learn to:
- Create and run your first bash shell script
- Use variables
- Pass arguments and accept user inputs in your bash scripts
- Perform mathematical calculations
- Manipulate strings
- Use conditional statements like if-else
- Use for, while and until loops
- Create functions
Who is the target audience?
Anyone who wants to start learning bash shell scripting.
If you are a student with shell scripting as part of your course curriculum, this series is for you.
If you are a regular desktop Linux user, this series will help you understand most shell scripts you come across while exploring various software and fixes. You could also use it to automate some common, repetitive tasks.
Basically, Bash should be on the learning roadmap of any serious Linux user.
By the end of this Bash Basics series, you should be able to write simple to moderate bash scripts.
All the chapters in the series have sample exercises so you can learn it by doing it.
Prerequisites
If you are absolutely new to the Linux command line, I advise you to get the basics right first.
You should understand how to go to a specific location in the command line. For that, you need to understand how path works in the Linux filesystem works.
Next, this tutorial series gives you the basic of directory navigation and file manipulation.
Let's begin!