# `head`

`head` prints the first lines of a file.

## Common `head` usage

- Output the first 10 lines of a file:

```bash
head file.txt
```

- output the last X lines of a file

```bash
head -n X file.txt 
```
