The head command in Linux used to print the first line/beginning of one or more files. It is a simple way to display the beginning of a text file or piped data. It shows the 10 lines by default by this command. There are multiple arguments that can be used to modify the by default output.
The syntax for the head command is :-
head [option] file_name
The use of the command can be used with or without additional option of the output.
head Command Options
The various option for the using with command will help to modify the output which data want to get as output.