Htop | Monitor Processes and System Resources

Htop is an interactive process viewer for the terminal that shows running processes and system resource usage. It provides a real-time view of CPU and memory usage and lets you sort, filter, and inspect processes. Htop also includes options for tree views, process filtering, update intervals, and different display settings.

What You Can Do with Htop

  • View running processes in real time.
  • Monitor CPU and memory usage.
  • Sort processes by different columns.
  • Filter processes by name or command.
  • Show processes for a specific user.
  • Display processes in a tree view.
  • Highlight process changes.
  • Show specific process IDs.
  • Change the refresh interval.

Htop Installation Commands

You can install Htop on different Linux distributions using the default package manager. Below are the commands to install Htop on popular Linux distributions.

First, update and upgrade the packages:

apt update && apt upgrade -y

Using the apt package manager for example.

Install htop on Debian-based Linux distributions using the apt package manager:

apt install htop -y

Install htop on Arch Linux using the pacman package manager:

pacman -S htop

Install htop on Fedora Linux using the dnf package manager:

dnf install htop

Once the installation is complete, Htop is ready to use on your linux terminal.

Htop Usage Commands

Htop provides several command-line options that let you control how processes and system information are displayed.

Run Htop:

htop

Show the help menu:

htop -h

Show the installed version:

htop -V

Use a monochrome color scheme:

htop -C

Set the delay between updates:

htop -d 10

The delay value is measured in tenths of a second.

Show only commands matching a filter:

htop -F firefox

Hide the function bar:

htop --no-function-bar

Highlight new and old processes:

htop -H

Disable the mouse:

htop -M

Hide the meters:

htop --no-meters

Exit after a specific number of updates:

htop -n 10

Show only a specific process ID:

htop -p 1234

Run Htop in read-only mode:

htop --readonly

Sort processes by a specific column:

htop -s PERCENT_CPU

Show processes in tree view:

htop -t

Show processes for a specific user:

htop -u

Show processes for a specific username:

htop -u username

Disable Unicode characters:

htop -U

These commands let you customize the Htop display, filter processes, change update settings, and control how system information is shown.

Overview

Htop is a useful terminal-based process viewer for monitoring running processes and system resources. Its interactive interface and command-line options provide different ways to view, filter, sort, and manage process information in the terminal.

SHARE THIS POST: