Linux tail

From John Freier
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