HTop: The Definitive Tool to Monitor Your Linux System

Introduction to HTop

HTop is an interactive command line application that shows in real time the use of CPU, memory and other system resources. Unlike the classic top, HTop offers a colorful and navigable interface with the mouse or arrow keys, which allows you to order processes, search by name and finish tasks with a single click.

Quick installation

In most Linux distributions, HTop is in the official repositories. In Ubuntu or Debian just run:

sudo apt update && sudo apt install htop

In Fedora dnf is used:

sudo dnf install htop

In Arch Linux, the package is in the core repositories:

sudo pacman -S htop

After installation, simply writehtopin the terminal and the interface will appear.

Basic navigation

Once inside HTop, you will notice a top bar with CPU, memory and swap indicators. Below, the list of processes is updated every second. You can move with the arrows up and down, and press.F6to choose the management criterion (CPU, MEM, TIME, etc.).

  • F1open the help.
  • F2opens the configuration, where you can change colors and columns.
  • F3allows to search for a process by name.
  • F4Filter the list according to your writing.
  • F5shows the view of process tree.
  • F9send a signal (by default SIGTERM) to the selected process.
  • F10He's out of HTop.

Interface customization

HTop is highly configurable. From the configuration menu (F2) you can:

  • Select which columns to show (PID, USER, PRI, NI, VITR, RES, SHR, S, CPU%, MEM%, TIME +, Command).
  • Change the color scheme to suit your terminal theme.
  • Adjust the screen soda (in milliseconds).
  • Activate or disable the kernel thread display.

These settings are saved in the file~/.config/htop/htoprcand therefore persist between sessions.

Advanced use: filters and searches

The filter (F4) is useful when you want to focus on processes that contain a certain chain. For example, writenginxshow only the processes related to that service. The incremental search (F3) highlights coincidences while writing, which accelerates the location of a specific process.

Comparison with top and other alternatives

Although top is still useful for its availability in minimum systems, HTop overcomes top in usability:

  • Graphic interface based on ncurses with colors.
  • Muse support (in terminals that allow it).
  • Multiple management and customizable columns.
  • Tree view and filtered in real time.

Other alternatives such asglancesorgotopoffer larger metrics, but HTop remains the lighter and process-focused option.

Conclusion

HTop has become an essential tool for system managers, developers and any user who wants to monitor the performance of your Linux quickly and intuitively. Its combination of low resource consumption, friendly interface and great customization capacity makes it indispensable in the terminal toolbox.

This work is under aCreative Commons License Attribution 4.0 International for Francesc Roig francesc @ vivaldi.net.

EnglishenEnglishEnglish