Install and use htop command in Linux

 

 In this tutorial, How to Install and use htop command in Linux.

Install htop command Linux in Linux

If your use Debian/Ubuntu, The following command line below:

sudo apt install htop

or, If your use Fedora/RHEL/CentOS

sudo dnf install htop

One your done with the installation, In the terminal the basic you use htop command

CPU usage bar

CPU usage bar 

 Memory bar

Memory bar

Green: Memory being utilized by system processes.
Blue: Memory used by buffer pages.
Orange: Memory allocated for cache pages.

Sort processes based on Resource Consumption

 Press F6 as the picture below:

Sort processes based on Resource Consumption

Search for a specific process

Press F3 and you a search prompt as show below:

Search for a specific process

Filter ongoing processes

Press F4 and you a search prompt as show below: