Bash Scripting on Linux (The Complete Guide) Class 06 – Exit Codes



Bash Scripting on Linux (The Complete Guide) Class 06 – Exit Codes

Bash Scripting on Linux (The Complete Guide) Class 06 - Exit Codes

How do you tell whether or not a task completed successfully? Usually, an error message is a sure sign that something went wrong. But when it comes to Linux, you won’t always have that to rely on. In this video, you’ll learn all about exit codes, which is how you determine whether or not a task in Linux is successful or if it failed.

Join this channel to get access to perks:
https://www.youtube.com/channel/UCxQKHvKbmSzGMvUrVtJYnUA/join

## Support LearnLinuxTV (commission earned):
– Get your own cloud server with Linode ➜ https://learnlinux.link/linode
– Support me on Patreon and get early access to new content! ➜ https://learnlinux.link/patron
– Check out my latest book, Mastering Ubuntu Server 4th Edition ➜ http://ubuntuserverbook.com
– Check out Shells.com to spin up your very own Linux or Windows desktop in the cloud ➜ https://learnlinux.link/shells
– Affiliate store for Linux compatible hardware/accessories ➜ https://learnlinux.link/amazon
– Check out the Tiny Pilot KVM for your Homelab ➜ https://learnlinux.link/tinypilot

## Other Bash Scripting Series Episodes:
– Class 01 ➜ Introduction: https://linux.video/bash1
– Class 02 ➜ Hello World: https://linux.video/bash2
– Class 03 ➜ Variables: https://linux.video/bash3
– Class 04 ➜ Math Functions: https://linux.video/bash4
– Class 05 ➜ If Statements: https://linux.video/bash5
– Class 06 ➜ Exit Codes: https://linux.video/bash6
– Class 07 ➜ While Loops: https://linux.video/bash7
– Class 08 ➜ Universal Update Script: https://linux.video/bash8
– Class 09 ➜ For Loops: https://linux.video/bash9
– Class 10 ➜ Where To Store Your Scripts: https://linux.video/bash10
– Class 11 ➜ Data Streams: https://linux.video/bash11
– Class 12 ➜ Functions: https://linux.video/bash12
– Class 13 ➜ Case Statements: https://linux.video/bash13
– Class 14 ➜ Scheduling Jobs (Part 1): https://linux.video/bash14
– Class 15 ➜ Scheduling Jobs (Part 2): https://linux.video/bash15
– Class 16 ➜ Arguments: https://linux.video/bash16
– Class 17 ➜ Building a Backup Script: https://linux.video/bash17
– Class 18 ➜ Closing: https://linux.video/bash18

## Recommended evergreen videos:
– How to create a bootable flash drive for installing Linux ➜ https://linux.video/flash-usb
– Understanding Linux permissions ➜ https://linux.video/perms
– OpenSSH Guide ➜ https://linux.video/ssh
– LVM Deep-dive ➜ https://linux.video/lvm
– How to better secure OpenSSH ➜ https://linux.video/secure-ssh

## LearnLinuxTV Links:
– Main site ➜ https://www.learnlinux.tv
– Community ➜ https://community.learnlinux.tv

## About the host
– Personal blog ➜ https://www.jaylacroix.com
– Twitter ➜ https://learnlinux.link/twitter

## FAQ
– Which distro do I use? ➜ https://learnlinux.link/mydistro
– My recording gear (commissions earned) ➜ https://learnlinux.link/recording-stuff

Disclaimer: LearnLinuxTV provides technical content on YouTube that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). LearnLinuxTV is not responsible for any damages that may arise from any use of this content. The viewer is expected to follow best judgement and to make his/her/their best decisions while working with production or non-production systems and hardware.

#linux #linuxtutorial #bash

Comments are closed.