How to Install and Use Htop on Linux?
For Linux systems, Htop is an interactive system control, process viewer, and process manager. It was created as a replacement for the Linux program top, and it has a lot of the same features as the top, but with a lot more flexibility in terms of how system processes can be interpreted. Unlike top, htop displays the entire list of running processes rather than just the most resource-intensive ones. Htop can view processes as a tree and provides resource-usage statistics using color.
First, update your system sources:
$ sudo apt install htop
Now, install htop using the below command:
$ sudo apt-get install -y htop
Compiling from source
We’ll need ncurses, as well as development tools/build necessary, to compile htop from the source. The steps for downloading htop from the source are as follows.
Install development tools using the below command:
$ sudo apt-get install build-essential
$ sudo apt-get install libncurses5-dev libncursesw5-dev
Now download htop from the source using wget:
$ wget http://hisham.hm/htop/releases/2.2.0/htop-2.2.0.tar.gz
$ tar xvfvz htop-2.2.0.tar.gz
Change directory to htop:
$ cd htop-2.2.0/
Now run the configure:
Now make a script:
Now we can install htop:
$ make install
Now you can open htop by simply typing:
Please Login to comment...