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.
 
 
 
 
 
Nathan Scott 01f5b89278 Pretty-print values in the PCP DynamicMeter code 5 years ago
.github Do not install recommended packages by default for the CI 5 years ago
darwin Add a new DynamicMeter class for runtime Meter extension 5 years ago
docs Add a section on PRs for the styleguide 5 years ago
dragonflybsd Add a new DynamicMeter class for runtime Meter extension 5 years ago
freebsd Add a new DynamicMeter class for runtime Meter extension 5 years ago
generic Fix typo in Generic_gettime_realtime on old Mac 5 years ago
iwyu Add sys/dirent.h to iwyu/htop.imp 5 years ago
linux Add a new DynamicMeter class for runtime Meter extension 5 years ago
netbsd Always update `proc->st_uid` + `proc->user` 5 years ago
openbsd Add a new DynamicMeter class for runtime Meter extension 5 years ago
pcp Pretty-print values in the PCP DynamicMeter code 5 years ago
scripts Track file descriptors in valgrind script 5 years ago
solaris Add a new DynamicMeter class for runtime Meter extension 5 years ago
unsupported Add a new DynamicMeter class for runtime Meter extension 5 years ago
zfs platform-dependent files included relative to main source directory 5 years ago
.editorconfig Add `trim_trailing_whitespace` to editorconfig 6 years ago
.gitignore Implement command line and environment handling for pcp htop. 5 years ago
.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 Document '?' key to reach the help screen 5 years ago
Action.h Use MainPanel type in State struct 5 years ago
Affinity.c Use `#if defined()` syntax when `#elif defined()` is present 5 years ago
Affinity.h Use unsigned types for CPU counts and associated variables 5 years ago
AffinityPanel.c Use unsigned types for CPU counts and associated variables 5 years ago
AffinityPanel.h cleaned up includes with iwyu 5 years ago
AvailableColumnsPanel.c cleaned up includes with iwyu 5 years ago
AvailableColumnsPanel.h cleaned up includes with iwyu 5 years ago
AvailableMetersPanel.c Add a new DynamicMeter class for runtime Meter extension 5 years ago
AvailableMetersPanel.h cleaned up includes with iwyu 5 years ago
BatteryMeter.c Save text buffer in Meter 5 years ago
BatteryMeter.h cleaned up includes with iwyu 5 years ago
CONTRIBUTING.md Adjust to current label reality and the fact that Github can't search for multiple labels ORed ... yet. 5 years ago
COPYING Remove trailing whitespaces 6 years ago
CPUMeter.c Add a new DynamicMeter class for runtime Meter extension 5 years ago
CPUMeter.h cleaned up includes with iwyu 5 years ago
CRT.c Add a new DynamicMeter class for runtime Meter extension 5 years ago
CRT.h Add a new DynamicMeter class for runtime Meter extension 5 years ago
CategoriesPanel.c Allow to pass '/' for item search 5 years ago
CategoriesPanel.h cleaned up includes with iwyu 5 years ago
ChangeLog Change 3.0.6-dev -> 3.1.0-dev 5 years ago
ClockMeter.c cleaned up includes with iwyu 5 years ago
ClockMeter.h cleaned up includes with iwyu 5 years ago
ColorsPanel.c cleaned up includes with iwyu 5 years ago
ColorsPanel.h cleaned up includes with iwyu 5 years ago
ColumnsPanel.c Mark several non-modified pointer variables const 5 years ago
ColumnsPanel.h cleaned up includes with iwyu 5 years ago
CommandLine.c Add a new DynamicMeter class for runtime Meter extension 5 years ago
CommandLine.h Abstract htop main function to allow for a platform binary 5 years ago
CommandScreen.c cleaned up includes with iwyu 5 years ago
CommandScreen.h Make all required includes explicit 5 years ago
Compat.c DragonFlyBSD: resolve sign comparison 5 years ago
Compat.h Request the realtime and monotonic clock times once per sample 5 years ago
DateMeter.c cleaned up includes with iwyu 5 years ago
DateMeter.h cleaned up includes with iwyu 5 years ago
DateTimeMeter.c cleaned up includes with iwyu 5 years ago
DateTimeMeter.h cleaned up includes with iwyu 5 years ago
DiskIOMeter.c cleaned up includes with iwyu 5 years ago
DiskIOMeter.h cleaned up includes with iwyu 5 years ago
DisplayOptionsPanel.c Allow for highlighting of deleted executables to be configured 5 years ago
DisplayOptionsPanel.h cleaned up includes with iwyu 5 years ago
DynamicMeter.c Pretty-print values in the PCP DynamicMeter code 5 years ago
DynamicMeter.h Add a new DynamicMeter class for runtime Meter extension 5 years ago
EnvScreen.c cleaned up includes with iwyu 5 years ago
EnvScreen.h cleaned up includes with iwyu 5 years ago
FunctionBar.c Rework drawing of FunctionBar 5 years ago
FunctionBar.h cleaned up includes with iwyu 5 years ago
Hashtable.c cleaned up includes with iwyu 5 years ago
Hashtable.h Hashtable: widen size from int to size_t 5 years ago
Header.c Add a new DynamicMeter class for runtime Meter extension 5 years ago
Header.h platform-dependent files included relative to main source directory 5 years ago
HostnameMeter.c cleaned up includes with iwyu 5 years ago
HostnameMeter.h cleaned up includes with iwyu 5 years ago
IncSet.c Mark several non-modified pointer variables const 5 years ago
IncSet.h cleaned up includes with iwyu 5 years ago
InfoScreen.c Check for set_escdelay in ncurses 5 years ago
InfoScreen.h InfoScreen: drop unused member 5 years ago
ListItem.c RichString: do not unnecessarily clean whole buffer 5 years ago
ListItem.h cleaned up includes with iwyu 5 years ago
LoadAverageMeter.c cleaned up includes with iwyu 5 years ago
LoadAverageMeter.h cleaned up includes with iwyu 5 years ago
Macros.h Check for alloc_size attribute in configure.ac 5 years ago
MainPanel.c Make MainPanel_pidSearch a static function 5 years ago
MainPanel.h Make MainPanel_pidSearch a static function 5 years ago
Makefile.am Add a new DynamicMeter class for runtime Meter extension 5 years ago
MemoryMeter.c cleaned up includes with iwyu 5 years ago
MemoryMeter.h cleaned up includes with iwyu 5 years ago
Meter.c Pretty-print values in the PCP DynamicMeter code 5 years ago
Meter.h Pretty-print values in the PCP DynamicMeter code 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 Remove trailing whitespaces 6 years ago
NetworkIOMeter.c cleaned up includes with iwyu 5 years ago
NetworkIOMeter.h cleaned up includes with iwyu 5 years ago
Object.c Allow meters in text mode to span empty neighbors to the right 5 years ago
Object.h Object: always include stdbool.h 5 years ago
OpenFilesScreen.c Make Infoscreens the correct height 5 years ago
OpenFilesScreen.h cleaned up includes with iwyu 5 years ago
OptionItem.c Use RichString_appendnAscii where possible 5 years ago
OptionItem.h Add support to change numeric options in settings screen 5 years ago
Panel.c RichString: do not unnecessarily clean whole buffer 5 years ago
Panel.h Mark several non-modified pointer variables const 5 years ago
Process.c Apply stale lib highlighting for EXE too 5 years ago
Process.h Check processes for using deleted shared libraries 5 years ago
ProcessList.c Add a new DynamicMeter class for runtime Meter extension 5 years ago
ProcessList.h Add a new DynamicMeter class for runtime Meter extension 5 years ago
ProcessLocksScreen.c Make Infoscreens the correct height 5 years ago
ProcessLocksScreen.h IWYU update (Linux) 5 years ago
ProvideCurses.h Use consistent style for include check 5 years ago
README Update IRC channel (Part 2) 5 years ago
README.md Add README.md for Github 12 years ago
RichString.c cleaned up includes with iwyu 5 years ago
RichString.h Enclose macro argument 5 years ago
ScreenManager.c Check for set_escdelay in ncurses 5 years ago
ScreenManager.h Mark several non-modified pointer variables const 5 years ago
Settings.c Allow for highlighting of deleted executables to be configured 5 years ago
Settings.h Allow for highlighting of deleted executables to be configured 5 years ago
SignalsPanel.c Panel_new: reorder arguments 5 years ago
SignalsPanel.h cleaned up includes with iwyu 5 years ago
SwapMeter.c Remove Linux-specific cpp conditional in SwapMeter.c 5 years ago
SwapMeter.h cleaned up includes with iwyu 5 years ago
SysArchMeter.c cleaned up includes with iwyu 5 years ago
SysArchMeter.h [#480] SysArchMeter to view kernel/arch info 5 years ago
TESTPLAN Small update to test plan 5 years ago
TasksMeter.c Use RichString_appendnAscii where possible 5 years ago
TasksMeter.h cleaned up includes with iwyu 5 years ago
TraceScreen.c cleaned up includes with iwyu 5 years ago
TraceScreen.h Mark several non-modified pointer variables const 5 years ago
UptimeMeter.c Save text buffer in Meter 5 years ago
UptimeMeter.h cleaned up includes with iwyu 5 years ago
UsersTable.c Hashtable: use dynamic growth and use primes as size 5 years ago
UsersTable.h cleaned up includes with iwyu 5 years ago
Vector.c Avoid calling Object_isA from inside Vector_isConsistent 5 years ago
Vector.h InfoScreen/ProcessList: do not access Vector internals 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 autotools: enable warnings and cleanup 6 years ago
configure.ac Check for alloc_size attribute in configure.ac 5 years ago
htop.1.in htop.1.in: Some grammatical errors are fixed. 5 years ago
htop.c Abstract htop main function to allow for a platform binary 5 years ago
htop.desktop Add danish translation to htop.desktop 7 years ago
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
pcp-htop.c Resolve some Coverity scan misfires in PCP platform code 5 years ago
test_spec.lua Remove trailing whitespaces 6 years ago

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-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 Libera.Chat 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)