Use Streams Pipes and Redirects

Practice Labs Module
Time
58 minutes
Difficulty
Intermediate

The Using Streams, Pipes, and Redirects module provides you with the instructions and devices to develop your hands-on skills in the following topics: 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..

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

The Using Streams, Pipes, and Redirects module provides you with the instructions and devices to develop your hands-on skills in the following topics:

  • 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

Lab time: It will take approximately 1 hour to complete this lab.

Exercise 1 - Using 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 to use streams, pipes, and redirects.

Learning Partner
Comprehensive Learning

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