User Tools

Site Tools


Sidebar

Computer Science

Germany

Others

Links

computer_science:software:linux:commands:display_the_n_first_lines_of_a_text_file
head -n file.txt

Display only the first line of a text file:

head -1 file.txt

Display the 3 first lines of a text file:

head -3 file.txt
computer_science/software/linux/commands/display_the_n_first_lines_of_a_text_file.txt · Last modified: 2015/03/12 10:39 by thomas