linux - How to show only newly logged content in tail -f? -


normally tail -f shows 10-15 logged content. how can avoid it? want see newly logged content. there switch in tail command that? please advice.

simply set return 0 lines:

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

man tail:

   -n, --lines=k           output last k lines, instead of last 10; or use -n +k output lines starting kth 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -