# head — first lines of a file

`head` — first lines of a file.

## Example

```bash
head -n 5 log.txt
```

## Flags

- `0` — [object Object]

This site also runs the command in a browser terminal simulator, so the examples above
can be typed and executed without installing anything.

Source: https://zero2vibecode.com/commands/head
