How to watch logs realtime in Terminal

A few examples

tail -f /var/log/system.log
tail -f /var/log/mail.log
tail -f /var/log/mailaccess.log

If you don’t have permission to read the log, you may need sudo:

sudo tail -f /var/log/secure.log

Open a few Terminal windows and watch several logs simultaneously.

To exit hit:

CTRL+C
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.