head

Output the first part of files. More information: https://keith.github.io/xcode-man-pages/head.1.html.

head --lines 8 path/to/file

head --bytes 8 path/to/file

head --lines -8 path/to/file

head --bytes -8 path/to/file