Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常tail -f显示 10-15 个已记录的内容。我怎样才能避免它?我只想查看新记录的内容。tail 命令中是否有任何开关?请指教。
tail -f
只需设置为返回零行:
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