December 2018
Beginner
320 pages
8h 57m
English
The tail command is used to print last 10 lines of a file by default. However, like the head command, we can change the number number of lines to be displayed by using the -n option, or just -<number>, to display a different number of lines as specified. The filename whose contents are to be displayed is passed as an argument to the tail command, as shown in the following screenshot:

The tail command is more useful when we are troubleshooting issues using log files. It enables us to see the most recent lines of output by continuously displaying the addition of any new lines in the log file as soon as they appear. Thus, it enables ...
Read now
Unlock full access