How To Write Bash Scripts In Linux – Complete Guide (Part 1 – Introduction)
*π§ Support Learn Linux TV and get a Linux Command Cheat Sheet*
For just $3, This brand-new PDF cheat sheet features all the commands you should know, as well as some of Jay’s favorite aliases and tweaks!
– Download the PDF here β https://learnlinux.link/linux-commands
*ποΈ Support The Channel and Get Awesome Linux Swag!*
Head on over to the Learn Linux TV Merch Shop and check out some great Linux-themed gear, including (but not limited to) T-shirts, drinkware, buttons, stickers and more!
Use coupon code “LINUXFAN” to get 10% off your entire order β https://merch.learnlinux.tv
β https://learnlinux.link/lpi-course
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
02:36 – About the instructor
04:23 – Bash Scripting course outline
08:53 – What do you need in order to follow along?
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linux #linuxtraining #ittrainingShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 1 – Introduction)
Welcome to LearnLinuxTVβs complete Bash Scripting course! This 18-episode series is your step-by-step guide to mastering Bash scripting on Linux. Designed for beginners and system administrators alike, this course starts …with the basics and gradually introduces advanced concepts to help you write powerful, real-world scripts. Whether youβre managing Linux servers or automating repetitive tasks, youβll gain the skills to streamline your workflow. In this introductory episode, youβll learn how the course is structured and what you can expect as you progress from Bash basics to practical scripting solutions.
*π§ Support Learn Linux TV and get a Linux Command Cheat Sheet*
For just $3, This brand-new PDF cheat sheet features all the commands you should know, as well as some of Jay’s favorite aliases and tweaks!
– Download the PDF here β https://learnlinux.link/linux-commands
*ποΈ Support The Channel and Get Awesome Linux Swag!*
Head on over to the Learn Linux TV Merch Shop and check out some great Linux-themed gear, including (but not limited to) T-shirts, drinkware, buttons, stickers and more!
Use coupon code “LINUXFAN” to get 10% off your entire order β https://merch.learnlinux.tv
β https://learnlinux.link/lpi-course
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
02:36 – About the instructor
04:23 – Bash Scripting course outline
08:53 – What do you need in order to follow along?
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linux #linuxtraining #ittrainingShow More
*π§ Support Learn Linux TV and get a Linux Command Cheat Sheet*
For just $3, This brand-new PDF cheat sheet features all the commands you should know, as well as some of Jay’s favorite aliases and tweaks!
– Download the PDF here β https://learnlinux.link/linux-commands
*ποΈ Support The Channel and Get Awesome Linux Swag!*
Head on over to the Learn Linux TV Merch Shop and check out some great Linux-themed gear, including (but not limited to) T-shirts, drinkware, buttons, stickers and more!
Use coupon code “LINUXFAN” to get 10% off your entire order β https://merch.learnlinux.tv
β https://learnlinux.link/lpi-course
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
02:36 – About the instructor
04:23 – Bash Scripting course outline
08:53 – What do you need in order to follow along?
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linux #linuxtraining #ittrainingShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 2 – Hello World)
Every great programming journey starts with a βHello Worldβ β and Bash scripting is no exception. In this episode of LearnLinuxTVβs Bash Scripting course, we honor tradition by writing our …very first Bash script: a simple but essential βHello Worldβ example. If youβre new to Linux scripting, this is the perfect starting point to understand how Bash works, how to create and run scripts, and why this foundational step matters in every coderβs journey. Letβs get started with your first Bash script!
*ποΈ Support The Channel and Get Awesome Linux Swag!*
Head on over to the Learn Linux TV Merch Shop and check out some great Linux-themed gear, including (but not limited to) T-shirts, drinkware, buttons, stickers and more!
Use coupon code “LINUXFAN” to get 10% off your entire order β https://merch.learnlinux.tv
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
01:03 – What is a Shell in Linux?
05:03 – How to turn Linux command(s) into a Bash Script
06:40 – Marking a script file as executable with chmod
08:32 – How do you run/execute a Bash Script?
12:37 – How to (properly) write a Bash Script
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#Linux #LinuxCourse #ITTrainingShow More
*ποΈ Support The Channel and Get Awesome Linux Swag!*
Head on over to the Learn Linux TV Merch Shop and check out some great Linux-themed gear, including (but not limited to) T-shirts, drinkware, buttons, stickers and more!
Use coupon code “LINUXFAN” to get 10% off your entire order β https://merch.learnlinux.tv
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
01:03 – What is a Shell in Linux?
05:03 – How to turn Linux command(s) into a Bash Script
06:40 – Marking a script file as executable with chmod
08:32 – How do you run/execute a Bash Script?
12:37 – How to (properly) write a Bash Script
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#Linux #LinuxCourse #ITTrainingShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 3 – Variables)
Dive into Bash variables with this episode of LearnLinuxTVβs complete Bash Scripting course! This 18-episode series is your step-by-step guide to mastering Bash scripting on Linux. In this class, we …explore how variables work in Bash, how to define and use them, and why theyβre essential for building powerful and flexible scripts. Whether youβre managing Linux servers or just starting your scripting journey, understanding variables is a critical skill youβll use again and again.
*Brand LPI Linux Essentials Course Available*
Check out the new course on Udemy! β https://learnlinux.link/lpi-course
β https://learnlinux.link/lpi-course
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:52 – Declaring a variable in Bash
01:45 – How to reference a variable in Bash
06:25 – Using variables within Bash Scripts
16:44 – How to use the output of a command within a Bash Script
22:23 – How to view the environment variables within your Linux session
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linuxtutorial #linux #ubuntuShow More
*Brand LPI Linux Essentials Course Available*
Check out the new course on Udemy! β https://learnlinux.link/lpi-course
β https://learnlinux.link/lpi-course
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:52 – Declaring a variable in Bash
01:45 – How to reference a variable in Bash
06:25 – Using variables within Bash Scripts
16:44 – How to use the output of a command within a Bash Script
22:23 – How to view the environment variables within your Linux session
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linuxtutorial #linux #ubuntuShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 4 – Basic Math)
Master basic math operations in Bash with this quick and easy tutorial! In this episode of LearnLinuxTVβs complete Bash Scripting course, youβll learn how to perform arithmetic in Bash, including …addition, subtraction, multiplication, and more. Bash handles math differently than other scripting languages, so understanding these concepts early on will help you avoid confusion down the road. This short tutorial is just six minutes long, and itβs packed with practical examples to boost your scripting skills.
*Brand New Ansible Course Available*
Check out the new course on Udemy! It covers everything you need to get started with Automation.
β https://learnlinux.link/ansible
*Individual Sections*
00:00 – Intro
01:00 – Math is handled differently in Bash
01:28 – The “evaluate expression” command (expr) in Bash
02:37 – Multiplication in Bash (and how to use an escape symbol)
03:48 – Using variables with math expressions
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linux #baschscripting #linuxforbeginnersShow More
*Brand New Ansible Course Available*
Check out the new course on Udemy! It covers everything you need to get started with Automation.
β https://learnlinux.link/ansible
*Individual Sections*
00:00 – Intro
01:00 – Math is handled differently in Bash
01:28 – The “evaluate expression” command (expr) in Bash
02:37 – Multiplication in Bash (and how to use an escape symbol)
03:48 – Using variables with math expressions
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linux #baschscripting #linuxforbeginnersShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 5 – If Statements)
Learn how to use If statements in Bash scripting with this beginner-friendly tutorial! In this episode of LearnLinuxTVβs complete Bash Scripting course, youβll discover how conditional logic works in Bash. …Weβll cover how to structure If statements, when to use them, and why theyβre essential for creating decision-making scripts. With clear explanations and practical examples, this video will help you level up your scripting skills and write smarter, more dynamic Bash scripts.
*Brand New Ansible Course Available*
Check out the new course on Udemy! It covers everything you need to get started with Automation.
β https://learnlinux.link/ansible
*Individual Sections*
00:00 – Pre-Intro
00:48 – Intro
01:13 – Understanding “If Statements” in Bash and why they’re useful
01:42 – An example of an If Statement within a Bash Script on Linux
04:43 – Marking the script executable and running it
07:19 – Creating an If/Else conditional in Bash
12:07 – Using an If Statement in a Bash Script to check for the existence of a file
14:22 – Further explanation of checking for the existence of files and directories on Linux
15:20 – Using the which command on Linux to check if a command is present
16:19 – Creating a Bash Script to install a package if it’s not already installed
21:52 – How to use the apt command inside a Bash Script on Linux
23:02 – Using the -y option with apt to assume yes (bypass/skip prompts)
*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
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#commandline #linuxtutorial #bashShow More
*Brand New Ansible Course Available*
Check out the new course on Udemy! It covers everything you need to get started with Automation.
β https://learnlinux.link/ansible
*Individual Sections*
00:00 – Pre-Intro
00:48 – Intro
01:13 – Understanding “If Statements” in Bash and why they’re useful
01:42 – An example of an If Statement within a Bash Script on Linux
04:43 – Marking the script executable and running it
07:19 – Creating an If/Else conditional in Bash
12:07 – Using an If Statement in a Bash Script to check for the existence of a file
14:22 – Further explanation of checking for the existence of files and directories on Linux
15:20 – Using the which command on Linux to check if a command is present
16:19 – Creating a Bash Script to install a package if it’s not already installed
21:52 – How to use the apt command inside a Bash Script on Linux
23:02 – Using the -y option with apt to assume yes (bypass/skip prompts)
*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
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#commandline #linuxtutorial #bashShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 6 – Exit Codes)
Master exit codes in Bash and understand how Linux indicates success or failure for commands. In this episode of LearnLinuxTVβs complete Bash Scripting course, youβll learn how to check whether …tasks completed successfully using exit codes. Weβll cover how exit statuses work, how to capture and use them in your scripts, and why theyβre critical for automation and error handling. Perfect for beginners looking to build reliable and intelligent Bash scripts.
*Support Learn Linux TV*
Note: Commission may be earned for any and all links presented here.
– Get your own cloud server with Akamai Connected Cloud β https://learnlinux.link/akamai
– Become a channel member here on YouTube β https://learnlinux.link/join
– Become a Patron on Patreon β https://learnlinux.link/patron
– Check out my latest book, Mastering Ubuntu Server 4th Edition β http://ubuntuserverbook.com
– Affiliate store for Linux compatible hardware/accessories β https://learnlinux.link/amazon
– Check out the Tiny Pilot KVM for your Homelab β https://learnlinux.link/tinypilot
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:54 – What are “Exit Codes” in Linux?
01:31 – How does Bash perceive success and failure?
02:16 – Checking the $? variable to determine a command’s Exit Code
03:35 – How to interpret the value of Exit Codes in Linux
04:15 – Why it can benefit us to utilize Exit Codes in our Bash Scripts
05:22 – An example Bash Script that utilizes Exit Codes
07:48 – More efficiently utilizing Exit Codes in our Bash Scripts
14:42 – An example script that illustrates why execution order is important in Bash
20:55 – How to manipulate the exit code of a task
23:35 – Another example of task order in Bash being very important
*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*π LEARN LINUX TV ON THE WEB*
– Main site β https://www.learnlinux.tv
– Community β https://community.learnlinux.tv
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#linux #linuxtutorial #bashShow More
*Support Learn Linux TV*
Note: Commission may be earned for any and all links presented here.
– Get your own cloud server with Akamai Connected Cloud β https://learnlinux.link/akamai
– Become a channel member here on YouTube β https://learnlinux.link/join
– Become a Patron on Patreon β https://learnlinux.link/patron
– Check out my latest book, Mastering Ubuntu Server 4th Edition β http://ubuntuserverbook.com
– Affiliate store for Linux compatible hardware/accessories β https://learnlinux.link/amazon
– Check out the Tiny Pilot KVM for your Homelab β https://learnlinux.link/tinypilot
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:54 – What are “Exit Codes” in Linux?
01:31 – How does Bash perceive success and failure?
02:16 – Checking the $? variable to determine a command’s Exit Code
03:35 – How to interpret the value of Exit Codes in Linux
04:15 – Why it can benefit us to utilize Exit Codes in our Bash Scripts
05:22 – An example Bash Script that utilizes Exit Codes
07:48 – More efficiently utilizing Exit Codes in our Bash Scripts
14:42 – An example script that illustrates why execution order is important in Bash
20:55 – How to manipulate the exit code of a task
23:35 – Another example of task order in Bash being very important
*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*π LEARN LINUX TV ON THE WEB*
– Main site β https://www.learnlinux.tv
– Community β https://community.learnlinux.tv
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#linux #linuxtutorial #bashShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 7 – While Loops)
In this episode of the Bash Scripting course from LearnLinuxTV, youβll learn how to use while loops to automate repetitive tasks in Linux. While loops allow your Bash scripts to …repeat actions based on specific conditions, making them an essential tool for effective scripting. This video breaks down how while loops work, real-world use cases, and how to implement them properly. Perfect for beginners who want to boost their Linux scripting skills through practical examples.
*Linux-related Podcasts*
– Enterprise Linux Security β https://enterpriselinuxsecurity.show
– The Homelab Show β https://thehomelab.show
*Linux-related Gifts*
– Mastering Ubuntu Server 4th Edition (Jay wrote that!!! π²) β http://ubuntuserverbook.com
– Affiliate store for Linux compatible hardware/accessories β https://learnlinux.link/amazon
– Awesome KVM for your Homelab β https://learnlinux.link/tinypilot
*TIME CODES*
00:00 – Intro
00:50 – An example Bash Script that utilizes a While Loop
05:19 – Another example of While Loops on the Linux Shell
08:57 – Improving our Bash Script even Further
*Recommended stand-alone videos from Learn Linux TV*
– How to create a bootable flash drive for installing Linux β https://linux.video/flash-usb
– Installing an operating system for Raspberry Pi β https://linux.video/pi-imager
– Understanding Linux permissions β https://linux.video/perms
– Essential tweaks for ALL Linux Servers β https://linux.video/all-servers
*Stand-Alone Tutorials*
– OpenSSH Guide β https://linux.video/ssh-guide
– How to better secure OpenSSH β https://linux.video/secure-ssh
– 10 Linux Terminal Tips and Tricks to Enhance Your Workflow β https://linux.video/cli-tricks-1
– Over 15 Terminal Tricks You Should Learn β https://linux.video/cli-tricks-2
*Recommended Courses from Learn Linux TV*
– Get up to speed with managing an OpenStack Cloud β https://linux.video/openstack
– Learn how to write your own Bash Scripts β https://linux.video/bash
– Install, configure, and maintain a Proxmox VE Cluster β https://linux.video/pve
– Automate tedious setup jobs by learning Ansible β https://linux.video/ansible
– Learn how to exit vim (and use it too) β https://linux.video/vim
*Linux-related Podcasts*
– Enterprise Linux Security β https://enterpriselinuxsecurity.show
– The Homelab Show β https://thehomelab.show
*Fun Linux-related Projects*
– Run your own Gitlab CE Server β https://linux.video/gitlab
– Build a Kubernetes Cluster on Proxmox β https://linux.video/pve-k8s
– Set up your own Nextcloud Server β https://linux.video/nextcloud
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
*Official Learn Linux TV Sites*
– Main site β https://www.learnlinux.tv
– Community β https://community.learnlinux.tv
*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.
#devopstraining #cloudcomputing #bashscriptingShow More
*Linux-related Podcasts*
– Enterprise Linux Security β https://enterpriselinuxsecurity.show
– The Homelab Show β https://thehomelab.show
*Linux-related Gifts*
– Mastering Ubuntu Server 4th Edition (Jay wrote that!!! π²) β http://ubuntuserverbook.com
– Affiliate store for Linux compatible hardware/accessories β https://learnlinux.link/amazon
– Awesome KVM for your Homelab β https://learnlinux.link/tinypilot
*TIME CODES*
00:00 – Intro
00:50 – An example Bash Script that utilizes a While Loop
05:19 – Another example of While Loops on the Linux Shell
08:57 – Improving our Bash Script even Further
*Recommended stand-alone videos from Learn Linux TV*
– How to create a bootable flash drive for installing Linux β https://linux.video/flash-usb
– Installing an operating system for Raspberry Pi β https://linux.video/pi-imager
– Understanding Linux permissions β https://linux.video/perms
– Essential tweaks for ALL Linux Servers β https://linux.video/all-servers
*Stand-Alone Tutorials*
– OpenSSH Guide β https://linux.video/ssh-guide
– How to better secure OpenSSH β https://linux.video/secure-ssh
– 10 Linux Terminal Tips and Tricks to Enhance Your Workflow β https://linux.video/cli-tricks-1
– Over 15 Terminal Tricks You Should Learn β https://linux.video/cli-tricks-2
*Recommended Courses from Learn Linux TV*
– Get up to speed with managing an OpenStack Cloud β https://linux.video/openstack
– Learn how to write your own Bash Scripts β https://linux.video/bash
– Install, configure, and maintain a Proxmox VE Cluster β https://linux.video/pve
– Automate tedious setup jobs by learning Ansible β https://linux.video/ansible
– Learn how to exit vim (and use it too) β https://linux.video/vim
*Linux-related Podcasts*
– Enterprise Linux Security β https://enterpriselinuxsecurity.show
– The Homelab Show β https://thehomelab.show
*Fun Linux-related Projects*
– Run your own Gitlab CE Server β https://linux.video/gitlab
– Build a Kubernetes Cluster on Proxmox β https://linux.video/pve-k8s
– Set up your own Nextcloud Server β https://linux.video/nextcloud
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
*Official Learn Linux TV Sites*
– Main site β https://www.learnlinux.tv
– Community β https://community.learnlinux.tv
*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.
#devopstraining #cloudcomputing #bashscriptingShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 8 – Update Script)
In this Bash scripting tutorial from LearnLinuxTV, youβll learn how to create a universal update script that works across multiple Linux distributions. This episode walks you through building a single …Bash script to simplify system updates, whether youβre running Ubuntu, Debian, Arch, Fedora, or others. Itβs a practical example that demonstrates how to consolidate repetitive tasks with scriptingβperfect for Linux users managing diverse systems and looking to streamline their workflow.
ββββββββββββββββββββββ
π Time Codes
00:00 – Pre-Intro
00:48 – Intro
01:23 – Explanation of the “Universal Update Script”
08:06 – Using the /etc/os-release file to our advantage in a Bash Script
*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
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#commandline #bash #terminalShow More
ββββββββββββββββββββββ
π Time Codes
00:00 – Pre-Intro
00:48 – Intro
01:23 – Explanation of the “Universal Update Script”
08:06 – Using the /etc/os-release file to our advantage in a Bash Script
*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
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#commandline #bash #terminalShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 9 – For Loops)
In this episode of the Bash scripting course from LearnLinuxTV, youβll learn how to use βfor loopsβ to automate tasks across multiple items in a set. Whether youβre managing files, …users, or any repeatable process, for loops are a powerful way to simplify your scripts. This tutorial explains how to set them up and provides practical examples to help you start using them effectively in your own Linux scripts.
*π Check out my brand-new Linux Troubleshooting eBook!*
Contains expert strategies to help you level-up your System Administration game. Packed with advice, best practices as well as some Linux-related life hacks!
– Check it out here β https://learnlinux.link/troubleshooting-ebook
*π Check out my brand-new Linux Troubleshooting eBook!*
Contains expert strategies to help you level-up your System Administration game. Packed with advice, best practices as well as some Linux-related life hacks!
– Check it out here β https://learnlinux.link/troubleshooting-ebook
ββββββββββββββββββββββ
*β€οΈ Support the Channel and Get Awesome Stuff*
Books, discounts, shirts and more!
– Switching to Linux Book (New!) β https://learnlinux.link/switch-to-linux
– Ansible Course β https://learnlinux.link/ansible
– Linux Essentials Course β https://learnlinux.link/linux-essentials
– eBook Bundle β https://learnlinux.link/ebook-bundle
– Linux Merch Shop β https://merch.learnlinux.tv
– Linode Starter Credit β https://learnlinux.link/linode
– Paid Assistance β https://www.learnlinux.tv/request-assistance
*β€οΈ Support the Channel*
– Enjoyed the video? Your support keeps this channel independent!
– Become a Channel Member (Ad-Free & Early Access) β https://learnlinux.link/join
– Support on Patreon β https://learnlinux.link/patron
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:42 – What are “For Loops” in Bash?
01:14 – An example of utilizing a For Loop within a Bash Script
05:56 – An example of a Bash Script with a For Loop that’s actually useful!
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#Linux #linuxserver #homelabShow More
*π Check out my brand-new Linux Troubleshooting eBook!*
Contains expert strategies to help you level-up your System Administration game. Packed with advice, best practices as well as some Linux-related life hacks!
– Check it out here β https://learnlinux.link/troubleshooting-ebook
*π Check out my brand-new Linux Troubleshooting eBook!*
Contains expert strategies to help you level-up your System Administration game. Packed with advice, best practices as well as some Linux-related life hacks!
– Check it out here β https://learnlinux.link/troubleshooting-ebook
ββββββββββββββββββββββ
*β€οΈ Support the Channel and Get Awesome Stuff*
Books, discounts, shirts and more!
– Switching to Linux Book (New!) β https://learnlinux.link/switch-to-linux
– Ansible Course β https://learnlinux.link/ansible
– Linux Essentials Course β https://learnlinux.link/linux-essentials
– eBook Bundle β https://learnlinux.link/ebook-bundle
– Linux Merch Shop β https://merch.learnlinux.tv
– Linode Starter Credit β https://learnlinux.link/linode
– Paid Assistance β https://www.learnlinux.tv/request-assistance
*β€οΈ Support the Channel*
– Enjoyed the video? Your support keeps this channel independent!
– Become a Channel Member (Ad-Free & Early Access) β https://learnlinux.link/join
– Support on Patreon β https://learnlinux.link/patron
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:42 – What are “For Loops” in Bash?
01:14 – An example of utilizing a For Loop within a Bash Script
05:56 – An example of a Bash Script with a For Loop that’s actually useful!
*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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#Linux #linuxserver #homelabShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 10 – Storing Scripts)
By now, youβve probably created a variety of Bash scriptsβbut where should you store them? In this episode of the LearnLinuxTV Bash scripting course, youβll learn the best practices for …organizing and storing your scripts within the Linux filesystem. Discover the standard directory structure, where to place your scripts for system-wide or user-specific use, and how proper script organization improves manageability and execution.
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:48 – The weaknesses of how we’ve been running scripts so far
02:39 – Where should you store your Bash Scripts? (and the FHS)
04:20 – Moving a script into /usr/local/bin
06:24 – Why it’s not necessary to use file extensions in Linux filenames
08:08 – Understanding $PATH on the Linux shell
10:48 – Adding a directory to your $PATH variable in Linux
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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linuxforbeginners #commandline #technologyShow More
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:48 – The weaknesses of how we’ve been running scripts so far
02:39 – Where should you store your Bash Scripts? (and the FHS)
04:20 – Moving a script into /usr/local/bin
06:24 – Why it’s not necessary to use file extensions in Linux filenames
08:08 – Understanding $PATH on the Linux shell
10:48 – Adding a directory to your $PATH variable in Linux
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ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#linuxforbeginners #commandline #technologyShow More

Now Playing
Bash Scripting for Beginners: Complete Guide to Getting Started – Data Streams (Part 11)
Standard Output? Standard Error? Standard Input? What do those terms even refer to?! In this video, not only will these concepts be explained, but you’ll also see them in action!
ββββββββββββββββββββββ
*π …Switch to Linux with my latest book! (Available Now!)*
Thinking about making the jump to Linux? This step-by-step guide will help you choose the right distribution, install Linux with confidence! Purchase your copy here:
https://learnlinux.link/switch-to-linux
ββββββββββββββββββββββ
*π§ Save up to 30% on Linux Foundation Certifications*
Whether you’re starting a Linux career or advancing your existing skills, Linux Foundation training can help you stand out in a competitive industry. Check out the available courses and certifications, and save!
https://learnlinux.link/get-certified
ββββββββββββββββββββββ
*β€οΈ Support the Channel and Get Awesome Stuff*
Books, discounts, shirts and more!
– Switching to Linux Book (New!) β https://learnlinux.link/switch-to-linux
– Ansible Course β https://learnlinux.link/ansible
– Linux Essentials Course β https://learnlinux.link/linux-essentials
– eBook Bundle β https://learnlinux.link/ebook-bundle
– Linux Merch Shop β https://merch.learnlinux.tv
– Linode Starter Credit β https://learnlinux.link/linode
– Paid Assistance β https://www.learnlinux.tv/request-assistance
*β€οΈ Support the Channel*
– Enjoyed the video? Your support keeps this channel independent!
– Become a Channel Member (Ad-Free & Early Access) β https://learnlinux.link/join
– Support on Patreon β https://learnlinux.link/patron
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:31 – Understanding Standard Output in Bash
01:56 – Standard Output in Bash and how to tell the difference
03:08 – An example of the find command that outputs both Standard Output and Standard Error
06:11 – Splitting Standard Output and Standard Error
11:46 – Why is differentiating Standard Output and Standard Error important in a Bash Script?
16:16 – Utilizing Standard Output as well as Standard Error within a Bash Script
*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
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#ubuntu #sysadmin #linuxtutorialShow More
ββββββββββββββββββββββ
*π …Switch to Linux with my latest book! (Available Now!)*
Thinking about making the jump to Linux? This step-by-step guide will help you choose the right distribution, install Linux with confidence! Purchase your copy here:
https://learnlinux.link/switch-to-linux
ββββββββββββββββββββββ
*π§ Save up to 30% on Linux Foundation Certifications*
Whether you’re starting a Linux career or advancing your existing skills, Linux Foundation training can help you stand out in a competitive industry. Check out the available courses and certifications, and save!
https://learnlinux.link/get-certified
ββββββββββββββββββββββ
*β€οΈ Support the Channel and Get Awesome Stuff*
Books, discounts, shirts and more!
– Switching to Linux Book (New!) β https://learnlinux.link/switch-to-linux
– Ansible Course β https://learnlinux.link/ansible
– Linux Essentials Course β https://learnlinux.link/linux-essentials
– eBook Bundle β https://learnlinux.link/ebook-bundle
– Linux Merch Shop β https://merch.learnlinux.tv
– Linode Starter Credit β https://learnlinux.link/linode
– Paid Assistance β https://www.learnlinux.tv/request-assistance
*β€οΈ Support the Channel*
– Enjoyed the video? Your support keeps this channel independent!
– Become a Channel Member (Ad-Free & Early Access) β https://learnlinux.link/join
– Support on Patreon β https://learnlinux.link/patron
ββββββββββββββββββββββ
π Time Codes
00:00 – Intro
00:31 – Understanding Standard Output in Bash
01:56 – Standard Output in Bash and how to tell the difference
03:08 – An example of the find command that outputs both Standard Output and Standard Error
06:11 – Splitting Standard Output and Standard Error
11:46 – Why is differentiating Standard Output and Standard Error important in a Bash Script?
16:16 – Utilizing Standard Output as well as Standard Error within a Bash Script
*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
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
ββββββββββββββββββββββ
*β οΈ Use Content Responsibly*
Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for any damages from its use. Always ensure you have proper permissions, follow company policies, and comply with all applicable laws while working with technology.
#ubuntu #sysadmin #linuxtutorialShow More

Now Playing
How To Write Bash Scripts In Linux – Complete Guide (Part 12 – Functions)
Take your Bash scripting skills to the next level by learning how to write and use functions! In this episode of the LearnLinuxTV Bash scripting course, youβll explore the power …of functions in Bash and how they can simplify your code, reduce repetition, and make your scripts more efficient and maintainable. Whether youβre automating tasks or organizing larger scripts, mastering functions is essentialβand this video will show you exactly how to do it.
*Brand New Udemy Courses Available!*
Check out my new courses on Udemy and take your learning even further!
– Ansible Course β https://learnlinux.link/ansible
– Linux Essentials Course β https://learnlinux.link/linux-essentials
*Check out the LLTV Shop!*
Shirts, bags, cups and much more! β https://merch.learnlinux.tv
*TIME CODES*
00:00 – Intro
00:43 – Introducing Functions into our “Updater” script
05:39 – Further explanation of functions and why they’re useful in Bash
07:25 – An example run of a script that utilizes functions
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
*Full Courses from Learn Linux TV*
– Linux Essentials Certification Workshop β https://learnlinux.link/lpi-course
– Linux Crash Course series β https://linux.video/cc
– Learn how to exit use tmux β https://linux.video/tmux
– Learn how to use vim β https://linux.video/vim
– Bash Scripting Series β https://linux.video/bash
– Proxmox VE Cluster Full Course β https://linux.video/pve
– Learn Ansible β https://linux.video/ansible
*Linux-related Podcasts*
– Enterprise Linux Security β https://enterpriselinuxsecurity.show
– The Homelab Show β https://thehomelab.show
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
*Disclaimer*
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#ubuntu #devops #devopstutorialsforbeginnersShow More
*Brand New Udemy Courses Available!*
Check out my new courses on Udemy and take your learning even further!
– Ansible Course β https://learnlinux.link/ansible
– Linux Essentials Course β https://learnlinux.link/linux-essentials
*Check out the LLTV Shop!*
Shirts, bags, cups and much more! β https://merch.learnlinux.tv
*TIME CODES*
00:00 – Intro
00:43 – Introducing Functions into our “Updater” script
05:39 – Further explanation of functions and why they’re useful in Bash
07:25 – An example run of a script that utilizes functions
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
*Full Courses from Learn Linux TV*
– Linux Essentials Certification Workshop β https://learnlinux.link/lpi-course
– Linux Crash Course series β https://linux.video/cc
– Learn how to exit use tmux β https://linux.video/tmux
– Learn how to use vim β https://linux.video/vim
– Bash Scripting Series β https://linux.video/bash
– Proxmox VE Cluster Full Course β https://linux.video/pve
– Learn Ansible β https://linux.video/ansible
*Linux-related Podcasts*
– Enterprise Linux Security β https://enterpriselinuxsecurity.show
– The Homelab Show β https://thehomelab.show
ββββββββββββββββββββββ
*π Learn Linux TV*
Your source for Linux-related Fun and Learning!
https://www.learnlinux.tv
https://community.learnlinux.tv
https://learnlinux.link/jay
ββββββββββββββββββββββ
*π€ Affiliate Notice*
Some of the links mentioned in this description are affiliate links. If you purchase through them, it helps keep the content flowing.
https://www.learnlinux.tv/content-ethics
*Disclaimer*
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV’s content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you’re compliant with all company rules, change control procedures, and local laws.
#ubuntu #devops #devopstutorialsforbeginnersShow More
