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
Leave a Reply
Want to join the discussion?Feel free to contribute!