The Customize or Write Simple Scripts module provides you with the instructions and devices to develop your hands on skills in the following topics.

  • Use standard sh syntax
  • Use command substitution
  • Use the test command

Lab time: 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.

Comprehensive Learning

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