[Next] [Previous] [Up] [Top] [Contents]

3.8 Display Commands

3.8.5 tail - display the end of a file

tail displays the tail, or end, of the file.

Syntax

tail [options] file

Common Options

-number number of lines to display, counting from the bottom of the file

Examples

The default is to display the last 10 lines, but you can specify different line or byte numbers, or a different starting point within the file. To display the last 30 lines of a file use the -number style:

% tail -30 filename


Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]