21篇测试必备的Linux常用命令,每天敲一篇,每次敲三遍,每月一循环,全都可记住!!

https://www.cnblogs.com/poloyy/category/1672457.html

 

实时刷新log

tail -f test.log

 

实时刷新最新500条log

tail -500f test.log

 

显示最后5条log(两种写法)

tail -n 5 test.log
tail -5 test.log

 

显示第五条后面的所有log

tail -n +5 test.log