support@clearontech.com   484-450-8590

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

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 SingleUser Mode, or even because the log files have grown so large that it actually starts crashing Console.app.

If you’re in this situation and want to follow your Console system log from 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.

 

Comments are closed.