You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Christian Göttsche a3c8285237 Refactor to tty_nr process field display 5 years ago
.github/workflows Merge branch 'default_libcap' (configure overhaul) of cgzones/htop 5 years ago
darwin Sort out the mess around column sorting that had accumulated over time 5 years ago
docs Fix a little typo (spelling) in the styleguide 5 years ago
dragonflybsd Sort out the mess around column sorting that had accumulated over time 5 years ago
freebsd Sort out the mess around column sorting that had accumulated over time 5 years ago
iwyu Add sys/dirent.h to iwyu/htop.imp 5 years ago
linux Refactor to tty_nr process field display 5 years ago
openbsd Sort out the mess around column sorting that had accumulated over time 5 years ago
scripts Track file descriptors in valgrind script 5 years ago
solaris Sort out the mess around column sorting that had accumulated over time 5 years ago
unsupported Unsupported: pass compilation 5 years ago
zfs Split RichString_(append|appendn|write) into wide and ascii 5 years ago
.editorconfig
.gitignore
.travis.yml travis CI: drop macOS and Linux builds 5 years ago
AUTHORS Update AUTHORS file with htop-dev team 5 years ago
Action.c Drop invalid todo 5 years ago
Action.h Add option to hide the Function Bar 5 years ago
Affinity.c Mark several non-modified pointer variables const 5 years ago
Affinity.h Mark several non-modified pointer variables const 5 years ago
AffinityPanel.c Mark several non-modified pointer variables const 5 years ago
AffinityPanel.h Mark several non-modified pointer variables const 5 years ago
AvailableColumnsPanel.c Rework enum ProcessField 5 years ago
AvailableColumnsPanel.h
AvailableMetersPanel.c Mark several non-modified pointer variables const 5 years ago
AvailableMetersPanel.h Mark several non-modified pointer variables const 5 years ago
BatteryMeter.c Enable -Wformat=2 5 years ago
BatteryMeter.h
CONTRIBUTING.md Documentation on the repository style guide 5 years ago
COPYING
CPUMeter.c Mark several non-modified pointer variables const 5 years ago
CPUMeter.h Show CPU temperature in CPU meter 5 years ago
CRT.c Do not call exit(3) in signal handler 5 years ago
CRT.h Pass Settings to CRT_init 5 years ago
CategoriesPanel.c Allow to pass '/' for item search 5 years ago
CategoriesPanel.h Make all required includes explicit 5 years ago
ChangeLog Add note to users about sort logic changes to ChangeLog 5 years ago
ClockMeter.c Mark several non-modified pointer variables const 5 years ago
ClockMeter.h
ColorsPanel.c Rework drawing of FunctionBar 5 years ago
ColorsPanel.h
ColumnsPanel.c Mark several non-modified pointer variables const 5 years ago
ColumnsPanel.h Fix segmentation fault when column name is NULL. 5 years ago
CommandScreen.c Make Infoscreens the correct height 5 years ago
CommandScreen.h Make all required includes explicit 5 years ago
Compat.c Support clock_gettime() on OSX El Capitan and earlier 5 years ago
Compat.h Support clock_gettime() on OSX El Capitan and earlier 5 years ago
DateMeter.c Mark several non-modified pointer variables const 5 years ago
DateMeter.h
DateTimeMeter.c Mark several non-modified pointer variables const 5 years ago
DateTimeMeter.h
DiskIOMeter.c Split RichString_(append|appendn|write) into wide and ascii 5 years ago
DiskIOMeter.h Convert personal copyright authorship to team 5 years ago
DisplayOptionsPanel.c Clarify that only the main screen function bar is optionally hidden 5 years ago
DisplayOptionsPanel.h
EnvScreen.c Mark several non-modified pointer variables const 5 years ago
EnvScreen.h EnvScreen: mark local class functions static 5 years ago
FunctionBar.c Rework drawing of FunctionBar 5 years ago
FunctionBar.h
Hashtable.c Hashtable: use appropriate return type for nextPrime 5 years ago
Hashtable.h Hashtable: widen size from int to size_t 5 years ago
Header.c Use typedef names instead of raw struct ones 5 years ago
Header.h Mark several non-modified pointer variables const 5 years ago
HostnameMeter.c Use size_t as len type for Meter_UpdateValues 5 years ago
HostnameMeter.h
IncSet.c Mark several non-modified pointer variables const 5 years ago
IncSet.h Refactor setting filter and use safe strncpy 5 years ago
InfoScreen.c Avoid syntax injection inside code block 5 years ago
InfoScreen.h InfoScreen: drop unused member 5 years ago
ListItem.c Object: return int on comparison 5 years ago
ListItem.h Small ListItem update 5 years ago
LoadAverageMeter.c LoadMeter: dynamically adjust color and total of bar 5 years ago
LoadAverageMeter.h
Macros.h Add compiler hints on memory allocating utility functions 5 years ago
MainPanel.c Mark several non-modified pointer variables const 5 years ago
MainPanel.h Avoid function cast by refactoring callback prototype 5 years ago
Makefile.am Drop duplicate option 5 years ago
MemoryMeter.c Split RichString_(append|appendn|write) into wide and ascii 5 years ago
MemoryMeter.h
Meter.c LED Meter: display wide characters and restore non-wide ncurses support 5 years ago
Meter.h Allow meters in text mode to span empty neighbors to the right 5 years ago
MetersPanel.c Mark several non-modified pointer variables const 5 years ago
MetersPanel.h Make all required includes explicit 5 years ago
NEWS
NetworkIOMeter.c Split RichString_(append|appendn|write) into wide and ascii 5 years ago
NetworkIOMeter.h
Object.c Allow meters in text mode to span empty neighbors to the right 5 years ago
Object.h Allow meters in text mode to span empty neighbors to the right 5 years ago
OpenFilesScreen.c Make Infoscreens the correct height 5 years ago
OpenFilesScreen.h Make all required includes explicit 5 years ago
OptionItem.c Split RichString_(append|appendn|write) into wide and ascii 5 years ago
OptionItem.h Add support to change numeric options in settings screen 5 years ago
Panel.c Mark several non-modified pointer variables const 5 years ago
Panel.h Mark several non-modified pointer variables const 5 years ago
Process.c Refactor to tty_nr process field display 5 years ago
Process.h Process: document process fields 5 years ago
ProcessList.c Sort out the mess around column sorting that had accumulated over time 5 years ago
ProcessList.h Linux: Add SwapCached to the swap meter 5 years ago
ProcessLocksScreen.c Make Infoscreens the correct height 5 years ago
ProcessLocksScreen.h IWYU update (Linux) 5 years ago
ProvideCurses.h Make all required includes explicit 5 years ago
README fix typo/missing newline for --enable-static 5 years ago
README.md
RichString.c RichString: implement safe rewind 5 years ago
RichString.h LED Meter: display wide characters and restore non-wide ncurses support 5 years ago
ScreenManager.c Mark several non-modified pointer variables const 5 years ago
ScreenManager.h Mark several non-modified pointer variables const 5 years ago
Settings.c Fix possible division by zero 5 years ago
Settings.h Add option to hide the Function Bar 5 years ago
SignalsPanel.c Panel_new: reorder arguments 5 years ago
SignalsPanel.h Make all required includes explicit 5 years ago
SwapMeter.c Linux: Add SwapCached to the swap meter 5 years ago
SwapMeter.h
TESTPLAN
TasksMeter.c Split RichString_(append|appendn|write) into wide and ascii 5 years ago
TasksMeter.h
TraceScreen.c TraceScreen: draw panel header 5 years ago
TraceScreen.h Mark several non-modified pointer variables const 5 years ago
UptimeMeter.c Use size_t as len type for Meter_UpdateValues 5 years ago
UptimeMeter.h
UsersTable.c Hashtable: use dynamic growth and use primes as size 5 years ago
UsersTable.h
Vector.c Avoid calling Object_isA from inside Vector_isConsistent 5 years ago
Vector.h Unify prototype of Vector_get 5 years ago
XUtils.c Mark several non-modified pointer variables const 5 years ago
XUtils.h Add compiler hints on memory allocating utility functions 5 years ago
autogen.sh
configure.ac Use different function on different detection method to avoid caching 5 years ago
htop.1.in Add option to drop Linux capabilities 5 years ago
htop.c Pass Settings to CRT_init 5 years ago
htop.desktop
htop.png Update htop logo, provide .svg file as well 5 years ago
htop.svg Update htop logo, provide .svg file as well 5 years ago
test_spec.lua

README.md

htop

CI Coverity Scan Build Status Mailing List IRC #htop Github Release Download

Screenshot of htop

Introduction

htop is a cross-platform interactive process viewer.

htop allows scrolling the list of processes vertically and horizontally to see their full command lines and related information like memory and CPU consumption.

The information displayed is configurable through a graphical setup and can be sorted and filtered interactively.

Tasks related to processes (e.g. killing and renicing) can be done without entering their PIDs.

Running htop requires ncurses libraries (typically named libncursesw*).

For more information and details on how to contribute to htop visit htop.dev.

Build instructions

This program is distributed as a standard GNU autotools-based package.

Compiling htop requires the header files for ncurses (libncursesw*-dev). Install these and other required packages for C development from your package manager.

Then, when compiling from a release tarball, run:

./configure && make

Alternatively, for compiling sources downloaded from the Git repository (git clone or downloads from Github releases), install the header files for ncurses (libncursesw*-dev) and other required development packages from your distribution's package manager. Then run:

./autogen.sh && ./configure && make

By default make install will install into /usr/local, for changing the path use ./configure --prefix=/some/path.

Build Options

htop has several build-time options to enable/disable additional features.

Generic

  • --enable-unicode: enable Unicode support dependency: libncursesw default: yes
  • --enable-hwloc: enable hwloc support for CPU affinity; disables Linux affinity dependency: libhwloc default: no
  • --enable-setuid: enable setuid support for privilege dropping default: no
  • --enable-static: build a static htop binary; hwloc and delay accounting are not supported default: no
  • --enable-debug: Enable asserts and internal sanity checks; implies a performance penalty default: no

Linux

  • --enable-sensors: enable libsensors(3) support for reading temperature data dependencies: libsensors-dev(build-time), at runtime libsensors is loaded via dlopen(3) if available default: check
  • --enable-capabilities: enable Linux capabilities support dependency: libcap default: check
  • --with-proc: location of a Linux-compatible proc filesystem default: /proc
  • --enable-openvz: enable OpenVZ support default: no
  • --enable-vserver: enable VServer support default: no
  • --enable-ancient-vserver: enable ancient VServer support (implies --enable-vserver) default: no
  • --enable-linux-affinity: enable Linux sched_setaffinity(2) and sched_getaffinity(2) for affinity support; conflicts with hwloc default: check
  • --enable-delayacct: enable Linux delay accounting support dependencies: pkg-config(build-time), libnl-3 and libnl-genl-3 default: check

Usage

See the manual page (man htop) or the on-line help ('F1' or 'h' inside htop) for a list of supported key commands.

Support

If you have trouble running htop please consult your Operating System / Linux distribution documentation for getting support and filing bugs.

Bugs, development feedback

We have a development mailing list. Feel free to subscribe for release announcements or asking questions on the development of htop.

You can also join our IRC channel #htop on freenode and talk to the developers there.

If you have found an issue with the source of htop, please check whether this has already been reported in our Github issue tracker. If not, please file a new issue describing the problem you have found, the location in the source code you are referring to and a possible fix.

History

htop was invented, developed and maintained by Hisham Muhammad from 2004 to 2019. His legacy repository has been archived to preserve the history.

In 2020 a team took over the development amicably and continues to maintain htop collaboratively.

License

GNU General Public License, version 2 (GPL-2.0)