Monitor log files in realtime, like “top” monitors processes [OS X]

log-filesloggingmac-osxrealtime

Is there a command/program for OS X that allows me to hook to a file and display its changes in realtime without re-opening it, much like "top" monitors system processes in realtime?

Best Answer

You can use tail to monitor single log file.

If file is deleted, then created again you may want to use tail -F to actively monitor file changes

If same file is being appended too use tail -f to actively monitor file changes

Related Topic