Linux System Engineer: Bash Shell Scripting for Automation

Linux System Engineer: Bash Shell Scripting for Automation
Linux System Engineer: Bash Shell Scripting for Automation
English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 0h 57m | 112 MB

Learn how to use bash scripting to automate common tasks on Linux, while you study for the related objectives from the RHCE certification exam. This course is part of Grant McWilliam’s comprehensive series that prepares you for the Red Hat Certified Engineer (RHCE) exam—the benchmark certification for Red Hat Enterprise Linux. It covers the foundations of creating and debugging bash scripts, including scripts that accept input via positional arguments, pipes, and file parsing. Plus, learn how to get data out of bash scripts and set up conditional and looping code blocks. Grant also solves some real-world problems, using bash to monitor user space and CPU usage.

Topics include:

  • Basics of bash scripting
  • Bash debugging
  • Loading files in scripts
  • Prompting for input
  • Piping data into a script
  • Outputting data from a script
  • Controlling the flow of bash scripts with conditions
  • Looping bash scripts
  • Reviewing real-world examples
Table of Contents

1 Bash scripting for automation
2 What you will need

Introduction to Linux Scripting
3 Introduction to bash
4 What makes a shell script a shell script
5 Using bash debugging mode
6 Bash variable scope

Using Outside Data in a Script
7 Positional arguments
8 Load files using while read
9 Load files into arrays with mapfile
10 Prompt for input
11 Pipe data into a script
12 Process shell options

Outputting Data from a Script
13 Saving data to files
14 Outputting to STDOUT and STDERR

Bash Logic
15 Conditional flow with if then fi
16 Conditional flow with case
17 Numeric conditions
18 String conditions
19 File conditions

Bash Loops
20 For loop
21 While loop

Real-World Examples
22 Monitoring user space usage
23 Monitoring CPU usage

24 Next steps