Introduction to Bash Scripting Easy
This module covers the basics needed for working with Bash scripts to automate tasks on Linux systems. A strong grasp of Bash is a fundamental skill for anyone working in a technical information security role. Through the power of automation, we can unlock the Linux operating system's full potential and efficiently perform habitual tasks.
Created by Valentin Dobrykov
In this module, we will cover:
- An introduction to Bash scripting
- Conditional execution
- Working with arguments, variables, and arrays
- Comparison operators, arithmetic, and input/output control
- Loops, branches, and functions
- Techniques for debugging Bash scripts
This module is broken down into sections with accompanying hands-on exercises to practice each of the tactics and techniques we cover. The module ends with a practical hands-on skills assessment to gauge your understanding of the various topic areas.
As you work through the module, you will see example commands and command output for the various topics introduced. It is worth reproducing as many of these examples as possible to reinforce further the concepts introduced in each section. You can do this in the Pwnbox provided in the interactive sections or your own virtual machine.
You can start and stop the module at any time and pick up where you left off. There is no time limit or "grading," but you must complete all of the exercises and the skills assessment to receive the maximum number of cubes and have this module marked as complete in any paths you have chosen.
The module is classified as "Easy" but assumes a working knowledge of the Linux command line and an understanding of information security fundamentals.
A firm grasp of the following modules can be considered prerequisites for successful completion of this module:
- Linux Fundamentals
- Web Requests
- Bourne Again Shell
- Conditional Execution
- Arguments, Variables, and Arrays
- Comparison Operators
- Input and Output Control
- Flow Control - Loops
- Flow Control - Branches