I. DISPLAY of Htop interface

“Htop is an interactive real-time process monitoring application for Linux/Unix systems and a replacement for the top command, which is the default process monitoring tool preinstalled on all Linux operating systems.

Htop has many other user-friendly features that are not available under the top command

  • In Htop, you can scroll vertically to see the complete process list and horizontally to see the complete command line.
  • With Top because it does not wait to get data during startup.
  • In Htop, you can kill multiple processes at once without inserting their Pids.
  • In Htop, you no longer need to enter a process number or priority value to re-optimize the process.
  • Press e to print the set of environment variables for the process.
  • Use the mouse to select list items.

2. Install Htop on Linux

1, Network security learning route 2, electronic books (white hat) 3, security factory internal video 4, 100 SRC documents 5, common security comprehensive questions 6, CTF competition classic topic analysis 7, full kit 8, emergency response notes

Most of this Htop package is available on all modern Linux distributions and can be installed using the default package manager on your system.

Install Htop on Debian

$ sudo apt install htop
Copy the code

Install Htop on Ubuntu

$ sudo apt install htop
Copy the code

Install Htop on Linux Mint

$ sudo apt install htop  
Copy the code

Install Htop on Fedora

$ sudo dnf install htop 
Copy the code

Install Htop on CentOS 8/7

$ sudo yum install epel-release  
$ sudo yum install htop
Copy the code

Install Htop on RHEL 8/7

--------- On RHEL 8 ---------   
$ sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm  
$ sudo yum install htop  
  
--------- On RHEL 7 ---------  
$ sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm  
$ sudo yum install htop  
Copy the code

Install Htop on Rocky Linux/AlmaLinux

$ sudo yum install epel-release  
$ sudo yum install htop  
Copy the code

Install Htop on Gentoo

$ emerge sys-process/htop  
Copy the code

Install Htop on Arch Linux

$ pacman -S htop 
Copy the code

This section describes how to install Htop on OpenSUSE

$ sudo zypper install htop  
Copy the code

On RHEL/CentOS and Fedora

$ sudo yum groupinstall "Development Tools"  
$ sudo yum install ncurses ncurses-devel  
Copy the code

On Debian, Ubuntu, and Mint

$ sudo apt-get install build-essential    
$ sudo apt-get install libncurses5-dev libncursesw5-dev  
Copy the code

Next, download the latest Htop from the Github repository and run Configure and Make scripts for installing and compiling Htop.

$htop wget - O - 3.0.5. Tar. Gz https://github.com/htop-dev/htop/archive/refs/tags/3.0.5.tar.gz $tar XVFVZ Htop-3.0.tar. gz $CD htop-3.0.5/ $./configure $make $sudo make installCopy the code

How to use Htop

Now run the Htop monitoring tool by executing the following command on the terminal.

 # htop 
Copy the code

Htop has three main parts

1. Title, we can see information in it, such as CPU, Memory, Swap, also display task, load Average and up-time.

2. CPU usage of processes in sequence.

3. The footer displays different options, such as help, setup, Filter tree kill, nice, quit, and so on.

Press F2 or S for the Setup menu > to have four columns, namely Setup, Left Column, Right Column, and Available Meters.

You can configure the meter to print at the top of the window, set various display options, select in color mode, and select which columns to print in what order.

Type Tree or t displays the process Tree view.

You can use this nifty Htop application to monitor Linux running processes by referring to the function keys displayed in the footer.

However, it is recommended to use character keys or shortcuts rather than function keys because they may map to some other function during the secure connection.