# Redirection

say it: **“ree-dih-REK-shun”** **/ˌridɪˈrɛkʃən/**

Sending output to a file (\`>\`, \`>>\`) or input from one (\`&lt;\`).

## What is **Redirection**?

**Redirection** sends output to a file instead of the screen: `>` replaces the file, `>>` adds to the end, `<` reads input from a file.

```bash
ls > files.txt
echo "eggs" >> shopping-list.txt
sort < names.txt
```

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

Updated: November 17, 2026

## In other subjects

- [Redirection in PowerShell](https://www.ask-codey.com/glossary/redirection-powershell)

Source: https://www.ask-codey.com/glossary/redirection
