What does Linux head -n or –lines=[-]NUM option do?

Head -n, –lines=[-]NUM option prints the first NUM lines instead of the first 10; with the leading ‘-‘, print all but the last NUM lines of each file.

Leave a Reply