tail

From RaySoft

tail prints the last part (10 lines by default) of each file; it reads from standard input if no files are given or when given a file of -.[1]

Documentation

Syntax

tail [PARAMETER ...] [FILE ...]

Parameters

-f,--follow[=HOW]
Loop forever trying to read more characters at the end of the file, presumably because the file is growing. If more than one file is given, tail prints a header whenever it gets output from a different file, to indicate which file that output is from.
There are two ways to specify HOW you’d like to track files with this option, but that difference is noticeable only when a followed file is removed or renamed. If you’d like to continue to track the end of a growing file even after it has been unlinked, use --follow=descriptor. This is the default behavior, but it is not useful if you’re tracking a log file that may be rotated (removed or renamed, then reopened). In that case, use --follow=name to track the named file, perhaps by reopening it periodically to see if it has been removed and recreated by some other program.
-n [+]NUMBER, --lines=[+]NUMBER

Output the last NUMBER lines. However, if NUMBER is prefixed with a +, start printing with line NUMBER from the start of each file, instead of from the end.

References