How can I view only the first n lines of the file?

vehomzzz picture vehomzzz · Sep 11, 2009 · Viewed 15.1k times · Source

I tried head +10 and it didn't work.

Answer

kwatford picture kwatford · Sep 11, 2009

Did you try the man page for head?

head -n 10 filename