• Online, Self-Paced
Course Description

In this course, you will learn how to create, execute, and manage Bash scripts and how to use variables and functions within those scripts.

Learning Objectives

Basics of Shell Scripting

  • start the course
  • create, execute, document, and comment in a Bash script
  • use read and echo to get user input and display script output, and recall how to return results at the end of the script
  • work with variables configured in the environment within a Bash script
  • access and use parameters passed in from the command line to a Bash script
  • use input and output redirection to send the output to a device, stdout, and stderr
  • use command line tools and key presses to control and manipulate scripts

Variables and Functions

  • work with Bash's built-in variables to get data about the script and the environment
  • create, use, and manipulate variables within a script
  • create constants, control and understand variable scope, and export variables
  • use escaping and printf to control how variables and string data are displayed
  • create and use functions within a Bash script, creating a library of functions that can be used in another script
  • use parameters to pass data to a function and add return codes to get the status or result from a function

Practice: Bash Scripting

  • create, use, and run Bash scripts that can manipulate variables, return results from the environment, and use functions

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.