

Starting from version 2.2.0, htop identifies the kernel threads by checking if /proc//cmdline is empty. Then, using command substitution, we replace the pidof mysqld command with its actual output. Here, we use the pidof command to find the PID of the running MariaDB program name.

To illustrate the problem at hand, let's pass the MariaDB server process ID as the value to the -pid option: $ htop -pid=$(pidof mysqld)Ģ Load average: 0.00 0.02 0.05 Mem Uptime: 04:45:44 With htop, we can limit the output to a specific process ID from the command line.
