Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How To Write Bash Scripts In Linux - Complete Guide (Part 7 - While Loops)
Play lesson

Learn Something New! - How To Write Bash Scripts In Linux - Complete Guide (Part 7 - While Loops)

5.0 (3)
25 learners

What you'll learn

This course includes

  • 135.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

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 #bashscripting

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere