How to install htop on pfSense firewall

I am using pfSense version 2.3.2-RELEASE (FreeBSD 10.3-RELEASE-p5). How do I install htop version 2.x on a pfSense firewall?

htop is an awesome and interactive system-monitor process-viewer. It acts as an alternative to the FreeBSD program top. It is a text-mode application and latest version works on FreeBSD based pfsense firewall too.

Install htop 2.x on pfSense

You need to log in using ssh client:
ssh admin@your-pfsense-firewall-ip-here
ssh admin@

Select option # 8 (shell).
Sample outputs:

Fig.01: pfsense ssh login

To install htop, type:
pkg install htop
Sample outputs:
Fig.02: installing htop on a pfsense

How do I use htop on pfSense firewall?

Simply type htop at the shell prompt (you may need to type rehash for the first time):
Sample outputs:

Animated gif 01: htop in action

How do I show only processes of a given user?

To see only processes of a given user (say nixcraft), enter:
htop -u nixcraft
htop --user=nixcraft

How do I show only the given PIDs?

The syntax is:
htop -p PID,[,PID,PID...]
htop --pid=PID,[,PID,PID...]
htop -p 31151,24721

How do I disable color scheme?

To see a monochrome color scheme, enter:
htop -C
htop --no-color

See htop man page for more information:
man htop

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.


How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...