From the course: Strategic Linux for Network Professionals: Security, Monitoring, and Automation

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Basic Bash scripting for network automation

Basic Bash scripting for network automation

- [Instructor] In this video, we will learn Basic Bash Shell Scripting for Network Automation. One of the most powerful things about Linux is that you can automate tasks using Bash scripts. Bash is a default shell in many Linux systems, and scripting with it can save you hours of work. Now, what is Bash scripting? Bash scripting is writing a list of commands in a file so the system can run them one after another. It's like creating a to-do list for your computer. So why do we use Bash scripting? Of course, we want to use Bash scripting to automate tasks like backups or software installs because you don't want it to be present to run the backup in the middle of the night, right? You want to schedule scripts to run daily, weekly, or monthly, save time on repetitive work, standardized configuration across machines. All right, let's go ahead and log into our Linux machine and practice some shell scripting. For this lesson, we don't have to log in as root because we will create shell…

Contents