Linux head Command

In this tutorial we learn how to use head commmand in Linux. head command is head - output the first part of files

What is Linux head Command?

In this tutorial we learn how to use head command in Linux. head command is head - output the first part of files

head Syntax

       head [OPTION]... [FILE]...

head Examples

head Command Manual / Help

We can use man and info command to see the manual page of head command.

head command also have --help option to show list of options.

To open man page for head command we can use command below. To exit man or info page you can press q.

man head

To open info page for head command we can use command below.

info head

To open help page from head command we can run command below.

head --help

Linux head Command Source Code

You can find head command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use head in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.