实时刷新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