Linux head Command
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 headTo open info page for head command we can use command below.
info headTo open help page from head command we can run command below.
head --helpLinux head Command Source Code
You can find head command source code from the folowing repositories:
- head source code on GitHub
- head source code on GNU Savannah cgit
- head source code on GNU Savannah gitweb
Related Linux Commands
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.