4

通常tail -f、すでにログに記録された 10 ~ 15 個のコンテンツが表示されます。どうすれば回避できますか?新しくログに記録されたコンテンツのみを表示したい。そのための tail コマンドにスイッチはありますか? ご意見をお聞かせください。

4

1 に答える 1

4

ゼロ行を返すように設定するだけです:

tail -n 0 -f /var/log/syslog

マンテール:

   -n, --lines=K
          output the last K lines, instead of the last 10; or use -n +K to output lines starting with the Kth
于 2013-05-14T03:24:38.757 に答える