How to Install htop on AlmaLinux: A Step-by-Step Guide

Category : Linux/ Unix

htop is an interactive process viewer for Linux systems. It provides a dynamic real-time view of running processes and system resource utilization. It offers a more user-friendly and feature-rich alternative to the classic top command. In this article, we will walk you through the steps to install htop in AlmaLinux.

Prerequisites

Before we begin, make sure your AlmaLinux system is up to date by running the following command:

sudo dnf update

Step 1: Enable the EPEL Repository

htop is available in the EPEL (Extra Packages for Enterprise Linux) repository. To enable EPEL on AlmaLinux, run the following command:

sudo dnf install epel-release

Step 2: Install htop

Once the EPEL repository is enabled, you can install htop using the dnf package manager:

sudo dnf install htop

Confirm the installation when prompted, and wait for the installation process to complete.

Step 3: Launch htop

After the installation is finished, you can launch htop by simply typing the following command in your terminal:

htop

This will open the htop interface, displaying a real-time view of the running processes and system resource usage.

Using htop

htop

htop provides a user-friendly interface for monitoring and managing processes. Here are some key features and shortcuts:

  • Use the arrow keys to navigate through the process list.
  • Press ‘F5’ to toggle the tree view. It shows the hierarchy of processes.
  • Use ‘F6’ to sort the processes based on various criteria such as CPU usage, memory usage, or process ID.
  • ‘F9’ to send signals to selected processes. It can terminate or kill them.
  • Press ‘F1’ or ‘h’ to access the built-in help menu for more information on available options and shortcuts.

For more advanced usage and customization options, refer to the htop manual by running man htop in your terminal.

Conclusion

Installing htop on AlmaLinux is a straightforward process thanks to the EPEL repository. With htop, you can easily monitor and manage running processes, track system resource utilization, and optimize your AlmaLinux system’s performance. Give it a try and experience the convenience and power of htop!