Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Linux System Engineer: Bash Shell Scripting for Automation

via LinkedIn Learning

Overview

Learn how to use bash scripting to automate common tasks on Linux.

Syllabus

Introduction
  • Bash scripting for automation
  • What you will need
1. Introduction to Linux Scripting
  • Introduction to bash
  • What makes a shell script a shell script?
  • Using bash debugging mode
  • Bash variable scope
2. Using Outside Data in a Script
  • Positional arguments
  • Load files using while read
  • Load files into arrays with mapfile
  • Prompt for input
  • Pipe data into a script
  • Process shell options
3. Outputting Data from a Script
  • Saving data to files
  • Outputting to STDOUT and STDERR
4. Bash Logic
  • Conditional flow with if, then fi
  • Conditional flow with case
  • Numeric conditions
  • String conditions
  • File conditions
5. Bash Loops
  • For loop
  • While loop
6. Real-World Examples
  • Monitoring user space usage
  • Monitoring CPU usage
Conclusion
  • Next steps

Taught by

Grant McWilliams

Reviews

4.6 rating at LinkedIn Learning based on 347 ratings

Start your review of Linux System Engineer: Bash Shell Scripting for Automation

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.