Difference between revisions of "Linux tail"

From John Freier
Jump to: navigation, search
(Created page with 'Tail is a tool for reading logs. == Follow == Follow a log and auto update when log appends. tail -f server.log == Number of Lines == Get the last number of lines in a lo…')
 
(No difference)

Latest revision as of 14:29, 4 October 2011

Tail is a tool for reading logs.


Follow

Follow a log and auto update when log appends.

 tail -f server.log


Number of Lines

Get the last number of lines in a log file.

This example gets the last 100 lines in the log.

 tail -100 server.log