How to install htop on CentOS 8

If you want to interactively monitoring system, htop command should be one of the best. htop is improving its predecessor top command, which is an interactive process viewer and system monitor, which color-coded resource use indicators, and allows you to easily grasp the system performance.

It displays information about the CPU and RAM utilization, the task being performed, average load and uptime information. In addition, htop display a list of all running processes, and can also display these processes in a tree format.

htop advantages include superior to top

  • Color-coded output resource usage statistics.
  • Without typing its PID to terminate or terminate the process capability.
  • Htop allows the use of the mouse, and the top is not supported.
  • Better performance than the top command.

Now, let's move on to see how to install this convenient feature.

By default, htop preinstalled on CentOS8. However, if you lack the tools on your system, the installation process is very simple, just three steps.

How to install htop on CentOS 8

1. The first step is to enable the installation tool Htop EPEL repository. To do this, run:

After installing EPEL repository, update the system.

# dnf update

How to install htop on CentOS 8

2. To install htop tool, just run the following command:

# dnf install htop

How to install htop on CentOS 8

After installation is complete, you can find more information about htop by running command.

# dnf info htop

How to install htop on CentOS 8

3. To start htop, simply run the command.

# htop

How to install htop on CentOS 8

The left part from top to bottom, respectively, the use of cpu, memory, swap, and the right part is: Tasks for the total number of processes, number of processes currently running, Load average for the system 1 minute, 5 minutes, 10 minutes load average case, Uptime is the time the system is running.

How to install htop on CentOS 8

Above items are as follows:

  • PID: identification number of
  • USER: User to run this process
  • Priority of the process: PRI
  • NI: process priority value, the default is 0, can be adjusted
  • VIRT: virtual memory occupied by the process value
  • RES: the value of physical memory occupied by the process
  • SHR: process uses shared memory value
  • S: the health of the process, R means running, S for sleep, wake-up wait, Z represents a dead state
  • % CPU: the process consumes CPU usage
  • % MEM: The percentage occupied by the process of physical memory and total memory
  • TIME +: Total CPU time the process started after the occupation of
  • COMMAND: command name starts the process was started

To get help on the command usage, simply run it.

# htop --help

How to install htop on CentOS 8

Alternatively, you can view a man page by running the following command:

# man htop

to sum up

In this article, you learned how to install htop on CentOS 8 and how to use the command retrieves system statistics.

Guess you like

Origin www.linuxidc.com/Linux/2019-11/161479.htm