Posts

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