What is the command to see top 10 lines of a file?

What is the command to see top 10 lines of a file?
Answer
To look at the first few lines of a file, type head filename, where filename is the name of the file you want to look at, and then press

</enter>

. By default, head shows you the first 10 lines of a file. You can change this by typing head -number filename, where number is the number of lines you want to see.
 

Tìm kiếm

Back
Top