# echo > file

`echo hello > file.txt`

Write text into a file, replacing whatever was in it.

## What each part does

- `echo` — command — print text
- `hello` — argument: a file, a folder, or text
- `>` — write the output to a file (overwriting it)
- `file.txt` — argument: a file, a folder, or text

Source: https://zero2vibecode.com/explain/echo-redirect
