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

Run guide now for your current session objective. After the objectives, it shows the current S3 quest. Submit requested explanations with guide answer 'your answer' and run guide check after practical work.

Full Autonomy

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