Stencel AcademyHow Linux Works →
Part 2 · Lesson 10 · Intermediate

Pipes & Redirection

Wire one program's output into another's input.

In this interactive Linux lesson from Stencel Academy you don't just read — you type real commands like ls | grep txt, ls notes.txt 2>&1 and watch the machine respond on a live, animated map. It is part of the free How Linux Works course.

Key takeaway: A pipe connects fd 1 of one process to fd 0 of the next; redirection rewires the fd table.

Before this lesson

Builds on: Signals.

What you'll practise

Terms you'll learn

pipefile descriptorstdin (0)stdout (1)stderr (2)

Check your understanding

What does a pipe connect?
Open the interactive lesson →