Hey, howdy. Yeah, I know, it’s been awhile.
Here’s a very short post on the FreeBSD top command, mostly because I was using it the other day and it was um…, top of mind (sorry).
The table of processes or “top” command can be used to display information on your FreeBSD system’s CPU(s) and running processes. By default top lists the processes based on their CPU usage, and will update the list every second. Here are a few of the top options I find handy:
-h Summarizes the options available for top
-a Displays the command name and its full path, rather than just its executable name.
-H Display each thread for a multi-threaded process individually. By default a single summary line is displayed for each process.
-I Toggles the display of idle processes. By default, top displays both active and idle processes.
-m Display statistics based on either I/O or CPU usage. The default is CPU.
-S Display system processes. Normally, system processes such as pagedaemon and clock are not shown.
References
https://man.freebsd.org/cgi/man.cgi?top(1)
https://klarasystems.com/articles/explaining-top1-on-freebsd/