Команда head

Displays the first ten lines of a file, unless otherwise stated.

Синтаксис

head [-number | -n number] filename

-numberThe number of the you want to display.
-n numberThe number of the you want to display.
filenameThe file that you want to display the x amount of lines of.

Примеры

head -15 myfile.txt - Would display the first fifteen lines of myfile.txt.

Обратно к списку команд