Displaying the Lines You Want to View from the End of the Output
By default, the
lastcommand displays the lines from the end of the output. You can also specify the number of lines to display from the end of the output. If the number of specified lines is less than a screen full, the command will display a screen full of output. This feature is most useful for viewing log files where the end of the files contain the most recent entries.To view the most recent entries from the end of the output, use the
| lastcommand after the pipe:user@host>showcommand|lastlines
linesspecifies the number of lines to display from the end of output.