|
|
To look at the first ten lines of a file, use the
head(C)
command:
head filename
To look at the last ten lines of a file, use the
tail(C)
command:
tail filename
If you use a numerical option, for example -20, head or tail will print that number of lines (20) instead of ten, the default, as follows:
$ head -20 file6.txt