head

Output the first part of files for quick inspection.

Synopsis

head [options] [file]

Core Options

-n N

Show first N lines.

-c N

Show first N bytes.

Usage Examples

Preview File

Show first 20 lines.

head -n 20 data.csv

Preview Bytes

Show first 200 bytes.

head -c 200 binary.bin
Built for builders.