BASH Scripting

CompTIA Linux+ Domain:

Domain 5.0: Automation and Scripting

CompTIA Linux+ Objective:

Objective 5.1: Given a scenario, deploy and execute basic BASH scripts.

Overview

Shell scripting allows you to take a complex sequence of commands, place them into a file, and then run the file as a program. This lab provides guidance on performing automation and scripting of the Linux+. By performing this lab, students will learn how to work with shell scripts.

OUTCOMES:

In this lab, you will learn to:

  1. Create simple shell scripts.
  2. Create shell scripts with conditional execution.

Key terms and descriptions

shell scripting
Shell scripting allows you to take a complex sequence of commands, place them into a file, and then run the file as a program.
vi
Vi is a command line text editor used in Linux.
root
Root is the system administrator account for Linux systems.