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 文件