Geek Posted April 20, 2011 Posted April 20, 2011 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/04/mac-console-logs-command-line.jpg" alt="Mac OS X Console Logs from Command Line" title="mac-console-logs-command-line" width="620" height="179" class="aligncenter size-full wp-image-15161" /></p> <p>If you’re <a href="http://osxdaily.com/category/troubleshooting/">troubleshooting</a> 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 Console.app when it’s trying to load (this has happened to me more than once). </p> <p>If you’re in this situation, or any other reason that you’d want to follow your Console <strong>system log</strong> from the <a href="http://osxdaily.com/category/command-line/">command line</a>, here’s all you need to type:</p> <p><code>tail -f /var/log/system.log</code></p> <p>You can do the same with the <strong>kernel log</strong>, which is great if you’re troubleshooting hardware and connectivity issues:</p> <p><code>tail -f /var/log/kernel.log</code></p> <p>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.</p> <p>You could also combine these commands with GeekTool if you want to see system log activity directly on your Mac OS X desktop.</p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/Tzy6Gt7D1LE1DXZlpniMVpyXgOs/0/da"><img src="http://feedads.g.doubleclick.net/~a/Tzy6Gt7D1LE1DXZlpniMVpyXgOs/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/Tzy6Gt7D1LE1DXZlpniMVpyXgOs/1/da"><img src="http://feedads.g.doubleclick.net/~a/Tzy6Gt7D1LE1DXZlpniMVpyXgOs/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=c4FmjrdHPtY:U9gTBxNlR08:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=c4FmjrdHPtY:U9gTBxNlR08:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=c4FmjrdHPtY:U9gTBxNlR08:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=c4FmjrdHPtY:U9gTBxNlR08:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=c4FmjrdHPtY:U9gTBxNlR08:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=c4FmjrdHPtY:U9gTBxNlR08:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=c4FmjrdHPtY:U9gTBxNlR08:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/c4FmjrdHPtY" height="1" width="1"/> View the full article
Recommended Posts