Customize or Write Simple Scripts

Practice Labs Module
Time
58 minutes
Difficulty
Intermediate

Welcome to the Customize or Write Simple Scripts Practice Lab. In this module you will be provided with the instructions and devices needed to develop your hands-on skills.

Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Overview

Introduction

Welcome to the Customize or Write Simple Scripts Practice Lab. In this module you will be provided with the instructions and devices needed to develop your hands-on skills.

Learning Outcomes

In this module, you will complete the following exercises:

  • Exercise 1 - Customize or Write Simple Scripts

After completing this lab, you will be able to:

  • Log into a Linux System
  • Use standard sh syntax
  • Use command substitution
  • Use the test command

Exam Objectives

The following exam objectives are covered in this lab:

  • LPI: 103.1 Work on the command line
  • LPI: 105.1 Customize and use the shell environment
  • CompTIA: 5.1 Given a scenario, deploy and execute basic BASH scripts.

Lab Duration

It will take approximately 1 hour to complete this lab.

Exercise 1 - Customize or Write Simple Scripts

Scripts allow you to automate a number of tasks or allow multiple commands to be executed at once. Assume that you have to add a few thousands of users. One method is to execute the useradd command thousands of times or simply write a script that will create these thousands of users without any user intervention. Scripts are especially relevant while executing loops and tests, that too without user intervention. In this exercise, you will understand how to write or customize simple scripts.

Learning Outcomes

After completing this exercise, you will be able to:

  • Log into a Linux System
  • Use standard sh syntax
  • Use command substitution
  • Use the test command
Learning Partner
Comprehensive Learning

See the full benefits of our immersive learning experience with interactive courses and guided career paths.