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