Overview

Introduction

Welcome to the Work with the Flow Control Constructs 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 - Work with the Flow Control Constructs

After completing this lab, you will be able to:

  • Log into a Linux System
  • Use the if…else statement
  • Use the while loop
  • Use the until loop
  • Use the for loop

Exam Objectives

The following exam objectives are covered in this lab:

  • LPI: 105.2 Customize or write simple scripts
  • 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 - Work with the Flow Control Constructs

A server can hold more than one hard drive. Due to an unforeseen error, there are changes that the server may crash, which can also impact the hard drive by making it unusable. The server administrator must regularly check the filesystem health, which is installed on the hard drive. CentOS provides several commands for this purpose.

In this exercise, you will learn to view the hard drive details.

Learning Outcomes

After completing this exercise, you will be able to:

  • Log into a Linux System
  • Use if…else statements

Comprehensive Learning

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