tail最大的用處就是來看log檔,有一些不錯的參數可資利用:

列出文字檔案尾端內容
tail 檔名 列出「檔名」最後十行:tail access_log

tail -n 檔名 列出「檔名」最後 n 行:tail -n5 access_log

tail +n 檔名 從 n 行開始列出「檔名」到最後:tail  +n1500  access_log

arrow
arrow
    全站熱搜

    bunkera 發表在 痞客邦 留言(0) 人氣()