← All courses
The Hacking Coach course
Bash Scripting Essentials
A beginner crash course in writing useful Bash scripts.

Learning objectives
- Understand the basics of Bash scripting
- Learn how to navigate the filesystem using Bash
- Create and run shell scripts
- Master the use of variables and parameters in Bash
Overview
Unleash the power of Bash scripting with this comprehensive crash course for beginners. Our practical approach aims to equip you with the essential skills to navigate the world of Bash. Created by industry experts, this course offers hands-on insights into file operations, script creation, and variable handling. Worried about your technical background? Don't be! Whether you're a novice or an experienced user transitioning to Bash, this course caters to all levels. Join now to seize this special offer and jumpstart your journey to Bash mastery!
Curriculum
Learning time: 12 hours 6 minutes
Introduction to Bash: Understanding the fundamentals of the Bash shell28 minutes
- What is Bash?
- Bash vs Other Shells
- Installing Bash
Basic Shell Commands: Mastering essential commands for navigating and operating in the shell1 hour 22 minutes
- Navigating the Filesystem
- File and Directory Operations
- Viewing File Contents
- File Permissions
- Searching and Finding Files
- System Information
- Networking
- Compression and Archiving
- Networking 7.1 ping (Check Network Connectivity) 7…
- Compression and Archiving 8.1 tar (Tape Archive) 8…
Writing Your First Script: Creating and executing basic shell scripts1 hour 23 minutes
- Creating a Shell Script
- Running a Shell Script
- Making a Script Executable
- Introduction to Package Management
- Types of Package Managers
- Package Repositories
- Dependency Management
- Installation of Packages
- Updating Packages
- Removing Packages
Variables and Parameters: Working with variables and special parameters in shell scripting1 hour 24 minutes
- Defining Variables
- Using Variables
- Special Parameters
- Positional Parameters
- Parameter Passing Techniques
- Parameter Scope
- Parameters 2.1 Definition of Parameters 2.2 Types
- Parameter Passing Techniques 2.3.1 Pass by Value 2…
- Parameter Scope
- Default Parameters
Basic Operators: Understanding and utilizing fundamental operators in shell scripting1 hour 25 minutes
- Arithmetic Operators
- Relational Operators
- Boolean Operators
- String Operators
- Bitwise Operators
- Assignment Operators
- Comparison Operators
- Assignment Operators 5.1 Assignment 5.2 Addition a…
- Assignment Operators 5.8 Bitwise AND assignment 5
- Comparison Operators 6.1 Equal to 6.2 Not equal to…
Control Structures: Implementing conditional statements, loops, and nesting in Bash scripting1 hour 22 minutes
- Conditional Statements 1.1 If Statement
- Conditional Statements 1.2 If-Else Statement
- Conditional Statements 1.3 Nested If-Else Statemen…
- Conditional Statements 1.4 Switch Statement
- Case Statements
- Loops (for, while, until)
- Nesting Loops and Conditionals
- Branching Statements
- Break Statement
- Continue Statement
Functions in Bash: Creating and utilizing functions within shell scripts1 hour 22 minutes
- Defining a Function
- Calling a Function
- Function Names, Parameters, and Arguments
- Positional Parameters
- Default Values
- Accessing Arguments, Return Values
- Using return Command
- Using exit Command
- Returning Status Codes, Scope, and Variables
- Local Variables
Input and Output: Managing input, output, and file operations in shell scripting35 minutes
- Reading User Input
- Outputting Data
- Redirecting Input and Output
- Working with Files
Error Handling: Implementing error handling and debugging strategies in shell scripting28 minutes
- Exit Status
- Trap Command
- Debugging Scripts
Working with Arrays: Utilizing arrays for data storage and manipulation in shell scripting27 minutes
- Defining Arrays
- Accessing Array Elements
- Looping Through Arrays
Advanced Scripting Techniques: Exploring advanced features and commands for sophisticated shell scripting26 minutes
- Regular Expressions: Understanding and applying re…
- Sed and Awk Commands: Leveraging Sed and Awk comma…
- Working with Subshells: How to work with subshells…
Practical Examples: Applying shell scripting concepts to real-world scenarios28 minutes
- Backup Scripts
- Log File Management
- Automation Scripts
Best Practices: Adhering to recommended practices and conventions in shell scripting27 minutes
- Writing Readable Code
- Commenting Your Code
- Version Control
Resources and Further Learning: Accessing additional learning materials and community support28 minutes
- Online Tutorials
- Books and Documentation
- Community Forums and Support
Prerequisites and equipment
- No prerequisites or equipment needed. Beginners are welcome!
Ready to start Bash Scripting Essentials?
Self-paced, on The Hacking Coach.
Enroll now ↗