Hello readers,

Let us find specific number of lines of a file. Use the head command.

Command :

-lines is to specific lines of file that you want to read.

filename is the name of file which lines you want to read.

 

Example:

Output :

hello world this is first line.

hello world this is second line.

hello world this is third line.

hello world this is fourth line.

hello world this is fifth line.