Pipes and Redirection
Part of the Linux course
In the last lesson you built small pipelines with | almost in passing, sending the output of one text tool into another. It is time to slow down and look at what that character is actually doing, because it is not special syntax just for grep and awk. Every single command you run in Linux, without exception, has three data streams attached to it: one it reads input from, one it writes normal output to, and one it...
Give a command a name and you would probably describe what it prints. But under the hood, every command is connected to three separate channels. stdin ("standard in") is where a command reads input from, by default your keyboard. stdout ("standard out") is where a command writes its normal, successful output, by default your screen.
Want to learn Linux Pipes and Redirection in a real environment?
Click below, get a fresh Linux box with Linux ready to go, and work through Pipes and Redirection hands-on with an AI tutor that knows your code.
Start this lessonPipes and RedirectionWhat you'll learn
- Pipes
- Stdout
- Stderr
- Stdin
- Redirection
- Tee
Read this lesson in your language
All lessons in this course
17 lessons- 1The Shell and First Commands20 min
- 2Filesystem and Navigation25 min
- 3Files and Permissions30 min
- 4Text Tools: grep, sed, awk30 min
- 5Pipes and Redirection25 min
- 6Processes and Signals30 min
- 7Users and Groups25 min
- 8Package Management25 min
- 9Networking Basics30 min
- 10Shell Scripting35 min
- 11systemd Services35 min
- 12SSH and Remote Access30 min
- 13Logs and Journals25 min
- 14Disks and Storage30 min
- 15Cron and Scheduled Tasks25 min
- 16Performance and Monitoring30 min
- 17Capstone: Server Setup60 min
