What is head command in UNIX?

1 answer

Answer

1238249

2026-05-03 04:00

+ Follow

The 'head' command will list out certain number of lines in a file from the beginning. The standard is to list the first 25 lines, but you can change that:

head -100 myfile

will list out the first 100 lines of myfile.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.