Linux 如何在tail-f中只显示新记录的内容?

Linux 如何在tail-f中只显示新记录的内容?,linux,unix,command,tail,Linux,Unix,Command,Tail,通常tail-f显示10-15个已记录的内容。我怎样才能避免呢?我只想看到新记录的内容。在tail命令中有任何开关吗?请注意。只需设置为返回零行: 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

通常
tail-f
显示10-15个已记录的内容。我怎样才能避免呢?我只想看到新记录的内容。在tail命令中有任何开关吗?请注意。

只需设置为返回零行:

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