Get first 10 lines.

head PATH

Get first N lines.

head -n N PATH

Tail

tail PATH
tail -n PATH

Watch file. There is also -f but I think -F works even if the file does not exist initially.

tail -F PATH

Head and tail

Get a portion of a file.

head -n 20 PATH | tail -n 10