Troubleshooting and Debugging Bash
1h 5mAdvanced2019-12-12
Authors

Sean Colins
Management Consultant, Author, Trainer, and Entrepreneur
Course details
Programmers joke that 90% of all coding is actually debugging. In scripting, the number could be even higher. Learn how to resolve your Bash scripting issues faster and get your scripts to run right. This course teaches you how to how to set yourself up for success from the very beginning by learning what components to search for in a good script editor and how to use those features to build observability into your script. You can also discover how to more easily find and identify bugs within scripts by enabling logging techniques and reporting of error conditions. Instructor Sean Colins also explains how to successfully re-use code that you built—or that others have built before you—and efficiently locate and repair the most common Bash scripting bugs.
Learning objectives
Choosing an editor
Leveraging automatic code completion
Formatting code
Setting script permissions
Organizing and segmenting code
Adding valuable comments
Testing regular expressions
Troubleshooting errors
Testing functions
Replacing variables
Reverse-engineering existing code
Learning commands
Accessing code repositories
Learning objectives
Choosing an editor
Leveraging automatic code completion
Formatting code
Setting script permissions
Organizing and segmenting code
Adding valuable comments
Testing regular expressions
Troubleshooting errors
Testing functions
Replacing variables
Reverse-engineering existing code
Learning commands
Accessing code repositories
Skills covered
BashIT AutomationNetwork and System AdministrationOpen SourceDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Bash scripting basics
- 02 - What you should know
1. Choosing an Editor
- 03 - Research
- 04 - Automatic code completion
- 05 - Resizing text
- 06 - Collapse code
- 07 - Colored text
2. Formatting and Testing
- 08 - Archiving work
- 09 - Style guides
- 10 - Script permissions
- 11 - Escaping spaces
- 12 - Case sensitivity
- 13 - Testing in real life
3. Organization
- 14 - Comment your script
- 15 - Change logging
- 16 - Placement of variables
- 17 - Segment code into functions
- 18 - Testing regular expressions
4. Troubleshooting Errors in Code
- 19 - Find open arguments
- 20 - Echo out progress
- 21 - Piping status
- 22 - Testing functions
- 23 - Environment variables
- 24 - Replacing variables
- 25 - Math challenges
5. Reusing Code
- 26 - Help
- 27 - Reverse engineering
- 28 - Cross-platform quirks
- 29 - Learning commands
- 30 - Reading man
- 31 - Code repositories
Conclusion
- 32 - Additional resources for Bash
Related courses
- Application Security Testing and Debugging
- Learning Bash Scripting
- Troubleshooting and Debugging Kafka
- AWS Certified Developer - Associate (DVA-C02) Cert Prep
- Enhancing Excel with Generative AI Tools
- Cisco CCNP ENARSI v1.1 (300-410) Cert Prep: 4 Infrastructure Services
- PHP Essential Training
- ASP.NET Core: Middleware
Related learn paths
- Master Data Engineering
- Become a Back-End Web Developer
- Explore Web Development with Node.js
- CCNP Enterprise: Prepare for the Implementing Cisco Enterprise Advanced Routing and Services (300-410 ENARSI) Exam
- Get Started with PHP
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Career Essentials in Software Development
- Explore a Career as a Web Developer