Introduction to Bash Scripting


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/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.

Target Audience
System administrators, DevOPS, software developers, and users who may need to create scripts to automate processes in a Linux or Linux-like environment

Prerequisites
None

Expected Duration (hours)
1.5

Lesson Objectives

Introduction to Bash 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
  • 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
  • create, use, and run Bash scripts that can manipulate variables, return results from the environment, and use functions
  • Course Number:
    os_doss_a01_it_enus

    Expertise Level
    Intermediate