1. 程式人生 > >linux 查找最後幾條數據

linux 查找最後幾條數據

tail gpo 查詢 數字 inf image lin 分享圖片 分享

技術分享圖片

tail(選項)(參數)
-n<N>或——line=<N>:輸出文件的尾部N(N位數字)行內容。

例如:
grep 查詢 2018-02-*/*.log |tail -n 5
查詢最後5條含"查詢"的數據

linux 查找最後幾條數據