If you want to monitor the system interactively, the htop command should be one of the best choices. htop is an improvement of its predecessor top command. It is an interactive process viewer and system monitor. It marks resource usage indicators with colors and allows you to easily grasp system performance.
It displays information about CPU and RAM utilization, tasks being performed, average load and uptime. In addition, htop displays a list of all running processes, and can also display these processes in a tree format.
The advantages of htop over top include
Now, let's enter to see how to install this convenient feature.
Install htop on CentOS 8
By default, htop is pre-installed on CentOS8. However, if the tool is missing on your system, the installation process is simple and only requires 3 steps.
After installing the EPEL repository, please update the system.
# dnf update
# dnf install htop
After the installation is complete, you can find more information about htop by running the command.
# dnf info htop
# htop
From top to bottom, the left part is the usage of cpu, memory, and swap partition. The right part is: Tasks is the total number of processes, the number of processes currently running, and Load average is the average load of the system for 1 minute, 5 minutes, and 10 minutes. Situation, Uptime is the time when the system is running.
The above items are:
In addition, you can pass some parameters to the command. For example, list the user's processes. Suppose linuxidc runs the command.
# htop -u linuxidc
To get help on command usage, just run it.
# htop --help
Alternatively, you can view the 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 this command to retrieve system statistics.
The above is the tutorial for installing htop on CentOS 8 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!
Recommended Posts