Display the first part of a file with head
Similar to the tail command which shows you the last few lines of a text file, the head command lets you to quickly view the first few lines.
The head command syntax.
head [options] file
By default head will show you the first 10 lines of a text file.
$ head textfile.txt
You can change the number of lines displayed [...]
Display the last part of a file with tail
Similar to the head command which shows you the first few lines of a text file, the tail command lets you to quickly view the last few lines of a text file. It also supports a monitoring mode which displays ongoing changes within the file.
The tail command syntax.
tail [options] file
By default tail will show you [...]
