htop Command in Linux (original) (raw)

Last Updated : 14 May, 2026

The htop command is an interactive process monitoring tool in Linux used to view and manage system resources in real time. It is an improved version of the top command, offering a more user-friendly interface with better visualization and control.

To open the interactive process monitoring interface.

**Command:

htop

**Output:

htop

system stats

Syntax

htop [options]

Common Options Used With htop Command

1. -d: Set Update Delay

Sets the delay between screen updates (in tenths of a second), which helps reduce frequent refreshes and makes the display easier to read while lowering CPU usage.

**Command:

htop -d 10

**Output:

htop -d  <delay>

Before adding delay

After adding delay of 30

After adding delay of 30

2. -u: Display Processes of a Specific User

Displays only the processes owned by a specific user, which is useful when monitoring or troubleshooting activity related to a particular account.

**Syntax:

htop -u

**Example Command:

htop -u kunwarvikas

**Output:

htop -u <username>

3. -p: Display Specific Process IDs

Shows only the specified process IDs, allowing you to focus on monitoring selected processes instead of the entire system.

**Syntax:

htop -p <pid1,pid2>

**Example:

htop -p 369

**Output:

htop -p <pid>

htop -p 369

4. -s: Sort Processes by Column

Sorts processes based on a specified column, helping quickly identify processes consuming high CPU, memory, or other resources.

**Syntax:

htop -s

**Example Command:

htop -s PRIORITY

**Output:

htop -s <column>

htop -s PRIORITY

5. -t: Display Process Tree View

Displays processes in a hierarchical tree view, making it easier to understand parent-child relationships between processes.

**Example: Display Process Tree View

To visualize parent-child relationships between processes.

**Command:

htop -t

**Output:

htop-t

6. --no-color: Disable Colored Output

Runs htop in monochrome mode by disabling colored output, which is useful in terminals that do not support colors.

**Command:

htop --no-color

**Output:

htop -no-color

--no-color

7. -v / --version: Display Version Information

Displays the installed version of htop, which is useful for verifying compatibility or troubleshooting.

**Command:

htop --version

**Output:

-v --version

Interactive Controls in htop

htop provides keyboard shortcuts for easy navigation and process management.

Process Selection:

Function Keys:

**Output: