The System Administrator's Guide to Bash Scripting

By Terry Cox

Learn to write effective and complex shell scripts.

7 hours
  • 49 Lessons

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. You will find a comprehensive study guide, an instructor note card set, and a full sixteen pages of sample shell scripts developed during the course, all available for you to download and reference.

  • Chapter 1 3 Lessons Introduction 15:22

    An Important Note About A Cloud Guru and Linux Academy Courses

    1:19

    Syllabus

    8:02

    History of Bash

    6:01
  • Chapter 2 19 Lessons Core Concepts 2:39:33

    Bash Files - .bash_profile

    7:32

    Bash Files - .bashrc

    7:02

    Bash Files - .bash_history

    7:09

    Bash Files - .bash_logout

    7:02

    What Makes a File a Shell Script?

    8:32

    Displaying Environment Variables in a Script

    7:23

    Using Variables on the Command Line

    10:06

    Setting and Using Variables in Scripts

    9:06

    Comment Types and Structure

    8:34

    Command Substitution

    10:18

    Exit Status

    7:54

    Arithmetic Operations

    7:54

    Global and Local Environment Variables

    6:34

    Special Characters - Quotes and Escapes

    7:55

    Using /dev/null

    6:38

    The Read Statement

    8:07

    Shell Expansion

    8:05

    Types of Variables (Implicit vs. Explicit Definition)

    11:20

    Arrays

    12:22
  • Chapter 3 7 Lessons Conditional Statements 1:18:40

    Passing Variables to Scripts at the Command Line

    9:01

    The If Statement

    16:49

    If/Then/Else

    16:16

    For Loop

    9:55

    Case Statement

    8:43

    While Loop

    8:26

    Execution Operators (&& and ||)

    9:30
  • Chapter 4 4 Lessons Input and Output 36:25

    Reading Files

    7:07

    File Descriptors and Handles

    8:33

    IFS and Delimiting

    9:10

    Traps and Signals

    11:35
  • Chapter 5 2 Lessons Debugging and Error Handling 18:56

    Debugging Your Script

    8:45

    Error Handling

    10:11
  • Chapter 6 6 Lessons Functions 1:03:46

    Simple Functions

    8:07

    Structure of Functions in a Script

    11:20

    Variable Scope in Functions

    9:47

    Functions with Parameters

    8:02

    Nested Functions

    12:20

    Function Return and Exit

    14:10
  • Chapter 7 7 Lessons Samples/Use Cases 1:13:20

    Using the InfoBox

    12:38

    Display a MessageBox for Confirmation

    12:01

    Advanced UI - Building a Menu System

    12:21

    The InputBox

    8:21

    Overriding Events

    10:45

    Quickly Checking Command Line Parameters

    7:24

    Building a Document Generator

    9:50
  • Chapter 8 1 Lesson Conclusion 3:55

    Conclusion and Next Steps

    3:55

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.

Practice alongside courses in Cloud Playground

What is Cloud Playground? Cloud Playground lets you build skills in real-world AWS, Google Cloud, and Azure environments. Spin up risk-free Sandboxes, Servers and Terminals and follow along with courses, test a new idea or prepare for exams.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

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