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 email@example.com Select option # 8 (shell). Sample outputs:
To install htop, type: pkg install htop Sample outputs:
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): htop Sample outputs:
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
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.