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:

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 *