head – output the first part of files
head [OPTION]… [FILE]…
Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.
tail – output the last part of files
tail [OPTION]… [FILE]…
Print the last 10 lines of each FILE to standard…