Linux System Engineer: Bash Shell Scripting for Automation
Overview
Learn how to use bash scripting to automate common tasks on Linux.
Learn how to use bash scripting to automate common tasks on Red Hat Enterprise Linux (RHEL)—one of the most popular Linux distributions. This course 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.
Note: This course also helps you study to pass the Red Hat Certified Engineer (RHCE) exam—the benchmark certification for Red Hat Enterprise Linux.
Learn how to use bash scripting to automate common tasks on Red Hat Enterprise Linux (RHEL)—one of the most popular Linux distributions. This course 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.
Note: This course also helps you study to pass the Red Hat Certified Engineer (RHCE) exam—the benchmark certification for Red Hat Enterprise Linux.
Syllabus
Introduction
- Bash scripting for automation
- What you will need
- Introduction to bash
- What makes a shell script a shell script?
- Using bash debugging mode
- Bash variable scope
- Positional arguments
- Load files using while read
- Load files into arrays with mapfile
- Prompt for input
- Pipe data into a script
- Process shell options
- Saving data to files
- Outputting to STDOUT and STDERR
- Conditional flow with if, then fi
- Conditional flow with case
- Numeric conditions
- String conditions
- File conditions
- For loop
- While loop
- Monitoring user space usage
- Monitoring CPU usage
- Next steps
Taught by
Grant McWilliams
Related Courses
Reviews
0.0 rating, based on 0 reviews