【发布时间】:2013-05-08 05:24:44
【问题描述】:
通常tail -f 显示 10-15 个已记录的内容。我怎样才能避免它?我只想查看新记录的内容。 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
【讨论】: