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

3.8 Display Commands

3.8.4 head - display the start of a file

head displays the head, or start, of the file.

Syntax

head [options] file

Common Options

-n number number of lines to display, counting from the top of the file

-number same as above

Examples

By default head displays the first 10 lines. You can display more with the "-n number", or "-number" options, e.g., to display the first 40 lines:

% head -40 filename or head -n 40 filename


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