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
Post a Comment