Jump to content

Recommended Posts

Posted

<div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/05/htop-mac.gif" alt="htop for Mac" title="htop-mac" width="620" height="383" class="aligncenter size-full wp-image-15661" /></p>

<p>If you like to keep an eye on system resources and you want to branch out from the GUI Activity Monitor, check out htop for Mac OS X. htop is basically a significantly improved version of top, which lets you monitor system resources, CPU core load, <a href="http://osxdaily.com/2010/10/29/does-your-mac-need-more-memory-how-to-know-if-you-need-a-ram-upgrade/">memory use</a>, load averages, and manage running processes. </p>

<p>If you come from the linux world, you’re probably already familiar with htop, but if you’re not here’s why it’s better than top: for starters, it just looks better and is easier to read thanks to an improved layout and use of ANSII colors, but beyond that it’s great because it functions much like a <a href="http://osxdaily.com/2010/08/15/mac-task-manager/">task manager</a>, allowing you select and then renice or kill processes as needed. I find this easier than manually entering PID’s through top.</p>

<p><strong>The easiest way to get htop running on Mac OS X is by installing it through MacPorts:</strong></p>

<ul>

<li><a href="http://www.macports.org/install.php">Get MacPorts</a> and install it if you don’t have it already</li>

<li>After MacPorts is installed, launch a new Terminal window and type:</li>

<p><code>sudo port install htop</code>

</ul>

<p>Installing htop may take a while because it requires quite a few dependencies (zlib, openssl, perl, etc), but MacPorts will handle installing and downloading them all for you. If you have none of this already on your Mac, it could take up to 15 minutes for all of the necessary files to download, compile, and install. </p>

<p>After MacPorts is complete, launch a new Terminal session and type ‘htop’ to access the app. You navigate and use htop through the arrow and function keys, which you’ll see are laid out at the bottom.</p>

<p>I find htop to look best at fullscreen against a white background, but if you have a slightly transparent black terminal it looks great too:

<span id="more-15660"></span>

<img src="http://osxdaily.com/wp-content/uploads/2011/05/htop-in-mac-os-x.jpg" alt="htop for Mac OS X" title="htop-in-mac-os-x" width="620" height="382" class="aligncenter size-full wp-image-15662" /></p>

<p>If you like this, be sure to <a href="http://osxdaily.com/category/command-line/">check out more command line tips</a>.</p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/igMxwXCccl9IyMk9EDRIiUYHpkA/0/da"><img src="http://feedads.g.doubleclick.net/~a/igMxwXCccl9IyMk9EDRIiUYHpkA/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/igMxwXCccl9IyMk9EDRIiUYHpkA/1/da"><img src="http://feedads.g.doubleclick.net/~a/igMxwXCccl9IyMk9EDRIiUYHpkA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=xCXDE-KIokM:5lNYMVptLOs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=xCXDE-KIokM:5lNYMVptLOs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=xCXDE-KIokM:5lNYMVptLOs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=xCXDE-KIokM:5lNYMVptLOs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=xCXDE-KIokM:5lNYMVptLOs:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=xCXDE-KIokM:5lNYMVptLOs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=xCXDE-KIokM:5lNYMVptLOs: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/xCXDE-KIokM" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days


×
×
  • Create New...