How to install htop


htop is an interactive process viewer for Linux, replacing the traditional top.

Why htop?

htop provides a more interactive process-viewing experience. You can surf through running processes, scrolling horizontally and vertically to reveal information that would otherwise have been clipped, information such as full command lines.

You can see what files a process has open (click “l”); you can even trace processes using strace. There’s also a handy tree view for understanding process ancestry.

Installing on Linux

yum install htop

sudo apt-get install htop

Installing on FreeBSD

Step 1:

Add the following line to /etc/fstab:
linproc /compat/linux/proc linprocfs rw 0 0

Step 2:

Create a symbolic link for /usr/compat
mkdir -p /usr/compat/linux/proc ; ln -s /usr/compat /compat ; mount linproc

Step 3:

Compile and install
cd /usr/ports/sysutils/htop
make install