Kolam Ayer MakersLinux Foundations

I/O

Core Idea

I/O means input and output: the bytes a process reads and writes through terminals, files, pipes, sockets, and devices.

Standard Streams

Every normal command starts with three standard streams:

Commands To Try

printf 'hello\n'
cat < /etc/hostname
ls /etc /no/such/path > ~/playground/stdout.txt 2> ~/playground/stderr.txt

Why It Matters

Pipes and redirection are I/O plumbing. They let small programs cooperate without knowing about each other. grep can read from a file or from stdin. wc -l can count file lines or pipeline lines.

Common Confusions

Proof Check

Redirect stdout and stderr to different files, then explain which message landed where.

Docs Pointers