[Contents] [Prev] [Next] [Index] [Report an Error]


Displaying the Lines You Want to View from the End of the Output

By default, the last command 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 | last command after the pipe:

user@host> show command | last lines

lines specifies the number of lines to display from the end of output.


[Contents] [Prev] [Next] [Index] [Report an Error]