View the status of a long emerge

At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want [...]

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 [...]