Lazo Lab Sign up

Linux & the Command Line / Power tools

Lesson 16 of 30

Pipes

The pipe | sends one command's output into the next command. Chaining small tools is the Linux superpower.

Key points

  • cmd1 | cmd2
  • sort | uniq -c counts duplicates
  • wc -l counts lines
grep "Failed" auth.log | wc -l
Watch a video on thisOpens YouTube search results for “Pipes” in a new tab

Quiz · +10 XP

What does the | symbol do?

Log in to save progress and earn XP.