head shows the first lines of a file, 10 by default. It is a fast way to see a log's format and starting timestamps.
| No. | Step | Source | Destination | Type | Info |
|---|---|---|---|---|---|
| 1 | First lines | access.log | head -n 20 | DATA | — |
| 2 | First lines | head -n 20 | first 20 lines | DATA | — |
head shows the first lines of a file, 10 by default. It is a fast way to see a log's format and starting timestamps.
-n 50 shows the first 50 lines.-c 64 shows the first 64 bytes, useful for checking file headers.sort ... | head lists the top results.