Command: head - print the first few lines of a file Syntax: head [-n] [file] ... Flags: -n How many lines to print Examples: head -6 # Print first 6 lines of stdin head -1 file1 file2 # Print first line of two files The first few lines of one or more files are printed. The default count is 10 lines. The default file is stdin.