3
正常情況下,tail -f顯示10-15個已經記錄的內容。我怎樣才能避免它?我只想查看新記錄的內容。尾部命令中是否有切換?請指教。如何僅顯示tail -f中新記錄的內容?
正常情況下,tail -f顯示10-15個已經記錄的內容。我怎樣才能避免它?我只想查看新記錄的內容。尾部命令中是否有切換?請指教。如何僅顯示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