# head -n

`head -n 5 log.txt`

Show the first 5 lines of a file.

## What each part does

- `head` — command — first lines of a file
- `-n` — flag — how many lines
- `5` — argument: a file, a folder, or text
- `log.txt` — argument: a file, a folder, or text

Source: https://zero2vibecode.com/explain/head-n
