Htop is a free (GPL) ncurses-based process viewer for Linux.
It is similar to top, but allows you to scroll vertically and horizon-
tally, so you can see all the processes running on the system, along
with their full command lines.
Tasks related to processes (killing, renicing) can be done without
entering their PIDs.
Mandatory arguments to long options are madatory for short options too.
Delay between updates, in tenths of seconds
-C --no-color --no-colour
Start htop in monochrome mode
Display a help message and exit
Show only the given PIDs
-s --sort-key COLUMN
Sort by this column (use --sort-key help for a column list)
Show only the processes of a given user
Output version information and exit
The following commands are supported while in htop:
Arrows, PgUP, PgDn, Home, End
Scroll the process list.
Tag or untag a process. Commands that can operate on multiple pro-
cesses, like "kill", will then apply over the list of tagged pro-
cesses, instead of the currently highlighted one.
U Untag all processes (remove all tags added with the Space key).
s Trace process system calls: if strace(1) is installed, pressing
this key will attach it to the currently selected process, pre-
senting a live update of system calls issued by the process.
Go to the setup screen, where you can configure the meters dis-
played at the top of the screen, set various display options,
choose among color schemes, and select which columns are dis-
played, in which order.
Incrementally search the command lines of all the displayed pro-
cesses. The currently selected (highlighted) command will update
as you type. While in search mode, pressing F3 will cycle through
Incremental process filtering: type in part of a process command
line and only processes whose names match will be shown. To cancel
filtering, enter the Filter option again and press Esc.
Tree view: organize processes by parenthood, and layout the rela-
tions between them as a tree. Toggling the key will switch between
tree and your previously selected sort view. Selecting a sort view
will exit tree view.
F6, <, >
Select a field for sorting. The current sort field is indicated by
a highlight in the header.
Increase the selected process's priority (subtract from 'nice'
value). This can only be done by the superuser.
Decrease the selected process's priority (add to 'nice' value)
"Kill" process: sends a signal which is selected in a menu, to one
or a group of processes. If processes were tagged, sends the sig-
nal to all tagged processes. If none is tagged, sends to the cur-
rently selected process.
I Invert the sort order: if sort order is increasing, switch to
decreasing, and vice-versa.
+, - When in tree view mode, expand or collapse subtree. When a subtree
is collapsed a "+" sign shows to the left of the process name.
a (on multiprocessor machines)
Set CPU affinity: mark which CPUs a process is allowed to use.
u Show only processes owned by a specified user.
K Hide kernel threads: prevent the threads belonging the kernel to
be displayed in the process list. (This is a toggle key.)
H Hide user threads: on systems that represent them differently than
ordinary processes (such as recent NPTL-based systems), this can
hide threads from userspace processes in the process list. (This
is a toggle key.)
Refresh: redraw screen and recalculate values.
PID search: type in process ID and the selection highlight will be
moved to it.
The following columns can display data about each process. A value of
'-' in all the rows indicates that a column is unsupported on your sys-
tem, or currently unimplemented in htop. The names below are the ones
used in the "Available Columns" section of the setup screen. If a dif-
ferent name is shown in htop's main screen, it is shown below in paren-
The full command line of the process (i.e program name and argu-
PID The process ID.
PPID The parent process ID.
PGRP The process's group ID.
The process's session ID.
The controlling terminal of the process.
The process ID of the foreground process group of the controlling
The state of the process:
S for sleeping (idle)
R for running
D for disk sleep (uninterruptible)
Z for zombie (waiting for parent to read it's exit status)
T for traced or suspended (e.g by SIGTSTP)
W for paging
The user CPU time, which is the amount of time the process has
spent executing on the CPU in user mode (i.e everything but system
calls), measured in clock ticks.
The system CPU time, which is the amount of time the kernel has
spent executing system calls on behalf of the process, measured in
The time, measured in clock ticks that the process has spent in
user and system time (see UTIME, STIME above).
The children's user CPU time, which is the amount of time the
process's waited-for children have spent executing in user mode
(see UTIME above).
The children's system CPU time, which is the amount of time the
kernel has spent executing system calls on behalf of all the
process's waited-for children (see STIME above).
The kernels internal priority for the process, usually just it's
nice value plus twenty. Different for real-time processes.
The percentage of memory the process is currently using (based on
the process's resident memory size, see M_RESIDENT below).
Size in memory of the total program size.
The resident set size, i.e the size of the text and data sections,
plus stack usage.
The size of the process's shared pages
The size of the text segment of the process (i.e the size of the
processes executable instructions).
The library size of the process.
The size of the data segment plus stack usage of the process.
The number of bytes the process has read.
The number of bytes the process has written.
The number of read(2) syscalls for the process.
The number of write(2) syscalls for the process.
Bytes of read(2) I/O for the process.
Bytes of write(2) I/O for the process.
The I/O rate of read(2) in bytes per second, for the process.
The I/O rate of write(2) in bytes per second, for the process.
The I/O rate, IO_READ_RATE + IO_WRITE_RATE (see above).
Bytes of cancelled write(2) I/O.
Which cgroup the process is in.
CTID OpenVZ container ID, a.k.a virtual environment ID.
VPID OpenVZ process ID.
VXID VServer process ID.
All other flags
Currently unsupported (always displays '-').
proc(5), top(1), free(1), ps(1), uptime(1)
htop is developed by Hisham Muhammad <firstname.lastname@example.org-
This man page was written by Bartosz Fenski <email@example.com> for the
Debian GNU/Linux distribution (but it may be used by others). It was
updated by Hisham Muhammad, and later by Vincent Launchbury, who wrote
Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2019
All Rights Reserved.