Kolam Ayer MakersLinux Foundations

S3 Recap: Streams, Pipes, Processes

Session: S3

Core Idea

The shell is an I/O workshop. Small programs cooperate by reading stdin, writing stdout and stderr, and connecting those streams to files, /dev/null, and other programs.

Keep These Models

Practice

mkdir -p ~/playground
ls /etc/hostname /no/such/path >~/playground/stdout.txt 2>~/playground/stderr.txt
cat /etc/hostname >/dev/null
date --debug +%F 2>&1 | tee ~/playground/combined.txt | wc -l
ps -u "$USER" -o pid,comm,args

Recovery By Topic

Live Core

You have the live milestone when you can read redirection left to right, explain one multi-stage pipeline, distinguish an executable from a process, and inspect a process you own.

Can You Explain This?

Optional Reinforcement

Repeat the stream and pipeline exercises, inspect the saved output, and explain one process-table row to another learner.

Full Autonomy

Use the S3 self-study guide for the full examples, troubleshooting, proof checklist, and reference-card links.