# Standard Streams

say it: **“STAN-derd STREEMZ”** **/ˈstændərd ˈstrimz/**

stdin, stdout and stderr: a program's input, output and error channels.

## What is **Standard Streams**?

Every program has three **standard streams**: standard input (stdin, 0), standard output (stdout, 1) and standard error (stderr, 2). Errors can be redirected separately with `2>`.

```bash
./build.sh > build.log 2> errors.log
./build.sh > all.log 2>&1   # both into one file
```

Level: Journeyman · [More Unix terms at this level](https://www.ask-codey.com/glossary?category=unix&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/standard-streams
