# Three Streams: Output, Errors and Input

Every command has three streams, output, errors and input, and redirection sends each where you choose, with 2> for errors, &> or > file 2>&1 for both together, /dev/null to throw them away and &lt; to read a file in.

![Cheat sheet for the lesson Three Streams: Output, Errors and Input: Every command has three streams, output, errors and input, and redirection sends each where you choose, with 2> for errors, &> or > file 2>&1 for both together, /dev/null to throw them away and &lt; to read a file in.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/151ef86ebf6c4144963ababe9e525298.webp)

- Category: Bash
- Level: Apprentice
- Tags: dev-null, linux, redirection, standard-streams, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-streams-and-redirection-cheat-sheet
