Linux head and tail instructions

The head command is used to display the beginning of the file, the first 10 lines by default

The first 10 lines
head 文件

View the content of the first 5 lines, 5 can be any number
head -n 5 文件

The tail instruction is the same as the head instruction, it is the command to view the last few lines

Track all updates to this document in real time
tail -f 文件

Published 48 original articles · Likes0 · Visits 282

Guess you like

Origin blog.csdn.net/qq_44971387/article/details/105324369