Shell Scripting Part 2


In this lesson, you'll learn exactly what scripts are, the components that make up a script, how to use variables in your scripts, how to perform tests and make decisions, how to accept command line arguments, and how to accept input from a user. This lesson is part of the Linux Administration Bootcamp course, designed to get you up and running with Linux.

Learning Objectives

In this lesson, you'll learn how to:

  • Use variables in your scripts
  • Perform tests and make decisions
  • Accept command-line arguments
  • Accept input from a user

Intended Audience

  • Anyone with basic knowledge of Linux who wants to learn more
  • Professionals who want to learn more about Linux to enhance their career prospects


This is an intermediate-level lesson so some knowledge of Linux is expected. If you're just starting out, then try our Linux Fundamentals lesson first.

About the Author
Jason Cannon, opens in a new tab
Founder, Linux Training Academy
Learning paths

Jason is the founder of the Linux Training Academy as well as the author of "Linux for Beginners" and "Command Line Kung Fu." He has over 20 years of professional Linux experience, having worked for industry leaders such as Hewlett-Packard, Xerox, UPS, FireEye, and Nothing gives him more satisfaction than knowing he has helped thousands of IT professionals level up their careers through his many books and courses.

Covered Topics