The System Administrator’s Guide to Bash Scripting - NEW 2020

By Rob Marti

We will walk you through all of the major components and keywords in shell scripting so you can effectively write your scripts to handle any situation.

4.1 hours
  • 31 Lessons
  • 5 Hands-On Labs

About the course

In this course, you will develop all of the skills you need to write effective and complex shell scripts that can automate mundane tasks and complex implementations. We will walk you through all of the major components and keywords in shell scripting (loops, conditionals, functions, error handling, traps, signals, and more) so you can effectively write your scripts to handle any situation.

  • Chapter 1 2 Lessons Introduction 2:20

    Course Introduction

    1:14

    About the Training Architect

    1:06
  • Chapter 2 6 Lessons Basics of Bash Scripting 36:23

    What Is Bash Scripting?

    7:19

    Working with Special Characters

    7:17

    Implementing and/or Lists

    8:18

    Redirecting I/O, Utility Commands, and Pipes

    10:35

    Demoggification (or UUOC: Useless Use of cat)

    2:54

    Using bash To Write a Backup Script

    0:00 Hands-On Lab
  • Chapter 3 4 Lessons Variables 19:40

    What Do Variables Look Like and How Do We Use Them?

    6:27

    Introducing Bash Functions

    8:18

    Working with Arrays in Bash

    4:55

    Using Variables in a bash Backup Script

    0:00 Hands-On Lab
  • Chapter 4 3 Lessons Substitutions 8:45

    Command Substitutions

    4:13

    Process Substitutions

    4:32

    Incorporating Substitutions in an Already Existing Backup Script

    0:00 Hands-On Lab
  • Chapter 5 5 Lessons Flow Control 30:49

    Using the for Loop

    5:21

    Using the while or until Loop

    7:10

    Handling Signals and Traps

    6:49

    Using Exit Status, Tests, and Builtins

    11:29

    Implementing bash Flow Control in an Existing Backup Script

    0:00 Hands-On Lab
  • Chapter 6 2 Lessons Learning about Heredocs 8:55

    What Is a Heredoc?

    4:46

    What Is a Herestring?

    4:09
  • Chapter 7 2 Lessons Debugging Bash Scripts 19:20

    Using Bash Builtins to Troubleshoot Problems: Part 1

    11:55

    Using Bash Builtins to Troubleshoot Problems: Part 2

    7:25
  • Chapter 8 3 Lessons Quick and Dirty Regex in Bash 11:55

    What Is Regex?

    4:48

    How Does Bash Regex Work?

    7:07

    Implementing bash Regex in an Existing Backup Script

    0:00 Hands-On Lab
  • Chapter 9 3 Lessons Best Practices 17:32

    Reviewing Objectively Bad Scripts

    6:43

    Reviewing Objectively Good Scripts (and Improving Bad Ones)

    6:26

    Reviewing Portability Issues

    4:23
  • Chapter 10 1 Lesson Conclusion 1:25

    Course Summary

    1:25

What are Hands-on Labs

What's the difference between theoretical knowledge and real skills? Practical real-world experience. That's where Hands-on Labs come in! Hands-on Labs are guided, interactive experiences that help you learn and practice real-world scenarios in real cloud environments. Hands-on Labs are seamlessly integrated in courses, so you can learn by doing.

Get Started
Who’s going to be learning?
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!