Quick links About head Syntax Examples Related commands Linux / Unix main page About head Displays the first ten lines of a file, unless otherwise stated. Syntax head [-number | -n number] filename
| -number | The number of the you want to display. |
| -n number | The number of the you want to display. |
| filename | The file that you want to display the x amount of lines of. |
Examples head -15 myfile.txt - Would display the first fifteen lines of myfile.txt. Related commands cat more pg tail | |
| Resolved |
Were you able to locate the answer to your questions?
|
| |