tail command | head command

tail -f -n 50 log.txt loop to read the last 50 lines of the file log.txt 

head -n 50 log.txt displays the first n lines of the file

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325252593&siteId=291194637