Using Exit Statuses and Return Codes in Your Scripts
Difficulty: Intermediate
Duration: 8 minutes and 52 seconds
Students: 1,310
Rating: 4.8/5
In this Lesson, you will learn how to determine the exit status of a given command. You'll learn how to make decisions in your scripts based on the exit statuses of various commands. Finally, you'll learn how to use exit statuses in your own scripts. We'll take a look at a demonstration that will give you a practical understanding of using exit statuses.
Learning Objectives
- Determine the exit status of a given command.
- Make decisions in your scripts based on exit statuses of commands.
- Use exit statuses in your own 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.
Covered Topics