htop is a popular process monitoring tool for Linux that provides a more user-friendly and interactive way of monitoring system processes than the standard top
utility. Here’s how you can install htop on CentOS or RHEL:
- Update the package index: Before installing any new packages, you should always update the package index on your system. You can do this by running the following command:
sudo yum update
- Install htop: To install htop on your system, run the following command:
sudo yum install htop
- Start htop: After the installation is complete, you can start htop by running the following command in your terminal:
htop
The htop interface will display a real-time list of processes running on your system, along with various information about each process, such as its PID, user, CPU usage, memory usage, and more. You can use the arrow keys, page up and page down keys, and various other hotkeys to navigate and interact with htop.