Shell Script Debugging

Intermediate
8m
887
4.7/5

In this lesson, you will learn about the options built into Bash that will help you find and fix errors in your shell scripts.

Learning Objectives

  • Learn a range of commands used or debugging.
  • Use variables to control the behavior of your shell scripts and help you in debugging.
  • Learn how to manually debug a script.
  • Understanding syntax highlighting and how that can help you avoid common mistakes.
  • Learn about a special Bash variable that you can use to give you valuable information about what is happening inside of your scripts.
  • Learn about the differences between Windows and Linux file types and the problems you may encounter if you plan to use multiple operating systems to create scripts.

Intended Audience

This lesson is intended for anyone looking to learn more about bash scripting and shell programming.

Prerequisites

To get the most out of this lesson, you should have some basic knowledge of the command line, but it's not essential.

 

About the Author
Avatar
Jason Cannon, opens in a new tab
Founder, Linux Training Academy
Students
24,561
Courses
61
Learning paths
19

Jason is the founder of the Linux Training Academy as well as the author of "Linux for Beginners" and "Command Line Kung Fu." He has over 20 years of professional Linux experience, having worked for industry leaders such as Hewlett-Packard, Xerox, UPS, FireEye, and Amazon.com. Nothing gives him more satisfaction than knowing he has helped thousands of IT professionals level up their careers through his many books and courses.

Covered Topics