head [OPTION]... [file]…
Output the first 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.
-n [-]N |
tail [OPTION]... [file]…
Output the last lines of each file to standard output, default 10.
With more than one file, precede each with a header giving the file name.
With no file, or when file is -, read standard input.
-n [+]J[S]
| output the last J linesUse -n +J to output lines starting with the Jth
S multiplier suffix: b 512, kB 1000, K 1024, MB 1000*1000,
M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.
| ||||||||||||||||
-c [+]J | output the last J characters / bytes; use -c +J to output bytes starting with the Jth character of each file
| ||||||||||||||||
-f |