Use Streams Pipes and Redirects

Practice Labs Module
Time
1 hour
Difficulty
Intermediate

Welcome to the Use Streams Pipes and Redirects 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 Use Streams Pipes and Redirects 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 - Use Streams Pipes and Redirects

After completing this lab, you will be able to:

  • Log into a Linux System
  • Redirect standard input, standard output, and standard error
  • Pipe the output of one command to the input of the other command
  • Use the output of one command as the input to another command
  • Send the output to both stdout and a file

Exam Objectives

The following exam objectives are covered in this lab:

  • LPI: 103.4 Use streams, pipes, and redirects
  • 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 - Use Streams, Pipes, and Redirects

The Linux shells use pipes (|) as an operator between two commands, where the output of one command is the input of the second command. Redirects are meant to direct the output to a specific file or take the input from a specific file. In this exercise, you will understand how use streams, pipes, and redirects.

Learning Outcomes

After completing this exercise, you will be able to:

  • Log into a Linux System
  • Redirect standard input, standard output, and standard error
  • Pipe the output of one command to the input of the other command
  • Use the output of one command as the input to another command
  • Send the output to both stdout and a file
Learning Partner
Comprehensive Learning

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