shellspells beta

head

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

head Print the beginning of a file.

Handy for quickly checking the start of big files, or grabbing the start of a file. Also great for reducing the output of a command into a readable size.

Examples

View the first 5 lines of a file

head -5 /etc/hosts