# Random zfs notes and commands

List snapshots sorted by the size they require

```
zfs list -t snapshot | sort -k2 -h
```

* -k2 sorts by the second column of the output
* -h is short for --human-numeric-sort, meaning it sorts using units like M, G, T and so on.