Tech, Gadgets, Photography, Social Media and Poor Spelling

Follow System & Kernel Logs from the Command Line in Mac OS X

Mac OS X Console Logs from Command Line

If you’re troubleshooting some of the more difficult problems that you can have on a Mac, a good place to look are the System & Kernel Logs contained within Console app. Unfortunately there are times when you can’t access Console either because you are remotely troubleshooting, in Single User Mode, or even because the log files have grown so large that it actually starts crashing when it’s trying to load (this has happened to me more than once).

If you’re in this situation, or any other reason that you’d want to follow your Console system logfrom the command line, here’s all you need to type:

tail -f /var/log/system.log

You can do the same with the kernel log, which is great if you’re troubleshooting hardware and connectivity issues:

tail -f /var/log/kernel.log

The tail -f command allows the specified file to be read and printed to your screen in a live stream. There are plenty of other log files you can follow contained within /var/log but the above two are generally the most useful for troubleshooting purposes.

You could also combine these commands with GeekTool if you want to see system log activity directly on your Mac OS X desktop.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


This entry was posted on April 24, 2011 by in regular and tagged , , , , .
%d bloggers like this: