Linux tail

From John Freier
Revision as of 14:29, 4 October 2011 by Jfreier (Talk | contribs) (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…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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