wc
wc
prints out the number of lines, words, and bytes in the
specified file or in the input stream (from a pipeline). Type man
wc
to learn how to fine-tune what counts are displayed.
head
head
prints out the first ten lines of a file or stream. Use the -n
option to
specify how many lines should be displayed.
tail
Prints out the last ten lines of a file or stream. Use the -n
option to
specify how many lines should be displayed.