The head
command displays, by default, the first 10 lines of a text file. This
command is often used to get an idea of the kind of text file you’re
looking at; the first 10 lines are usually enough to determine what a
file is.
Here is an example:

As with tail, you can specify the number of lines you would like to display with the -n option:

You can display more then one file:

Here is an example:

As with tail, you can specify the number of lines you would like to display with the -n option:

You can display more then one file:

Post a Comment