{"id":7129,"date":"2019-01-04T01:17:30","date_gmt":"2019-01-04T01:17:30","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=7129"},"modified":"2019-01-08T11:39:00","modified_gmt":"2019-01-08T11:39:00","slug":"centos-install-htop-linux-hint","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/04\/centos-install-htop-linux-hint\/","title":{"rendered":"CentOS Install Htop \u2013 Linux Hint"},"content":{"rendered":"<p>It doesn\u2019t matter whatever system you\u2019re using \u2013 Windows, Linux or macOS or whatever, having a handy task manager is always a privilege as it allows you get even more control over the system. That\u2019s why there are a number of reasons I love to have Htop at my disposal.<\/p>\n<p>Htop is a great, interactive system monitor and process manager that targets the UNIX systems. Of course, it\u2019s a CLI tool that uses the text-mode. For using Htop, you need to have \u201cncurses\u201d present in your system.<\/p>\n<p>This is a very powerful solution for the enterprise and server areas where GUI is mostly avoided. Granted, GUI tools are more awesome-looking and easier-to-use for any user but for pro and server managers, the CLI is the best way to go.<\/p>\n<p>In the case of CentOS \u2013 the free edition of Red Hat Enterprise Linux, is the testing ground of the original condition of the server and enterprise. Today, let\u2019s have a look at the installation and usage of Htop on CentOS.<\/p>\n<p>Htop is already available at the Fedora EPEL repository and it\u2019s officially maintained. THat\u2019s why this is the most recommended way of getting htop. Don\u2019t worry; if you wish, you can also download the source and compile it by yourself.<\/p>\n<h2>1) Installing from EPEL<\/h2>\n<p>Make sure that your system has enabled the EPEL repository \u2013<\/p>\n<p>sudo yum install epel-release<br \/>\nsudo yum update&#8217;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/1-7.png\" alt=\"\" width=\"868\" height=\"621\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/2-7.png\" alt=\"\" width=\"884\" height=\"623\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/3-7.png\" alt=\"\" width=\"879\" height=\"432\" \/><\/p>\n<p>Once EPEL is ready, it\u2019s time to install htop \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/4-8.png\" alt=\"\" width=\"875\" height=\"621\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/5-8.png\" alt=\"\" width=\"869\" height=\"622\" \/><\/p>\n<h2>2) Installing from source<\/h2>\n<p>At first, make sure that your system includes the \u201cDevelopment Tools\u201d \u2013<\/p>\n<p>sudo yum groups mark install &#8220;Development Tools&#8221;<br \/>\nsudo yum groups mark convert &#8220;Development Tools&#8221;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/6-7.png\" alt=\"\" width=\"897\" height=\"379\" \/><\/p>\n<p>sudo yum groupinstall \u201cDevelopment Tools\u201d<br \/>\nsudo yum install glibc-devel glibc-headers kernel-headers kernel-devel gnutls-devel<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/7-7.png\" alt=\"\" width=\"875\" height=\"623\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/8-7.png\" alt=\"\" width=\"877\" height=\"625\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/9-6.png\" alt=\"\" width=\"882\" height=\"627\" \/><\/p>\n<p>sudo yum install ncurses-devel<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/10-4.png\" alt=\"\" width=\"880\" height=\"510\" \/><\/p>\n<p>Now, <a href=\"https:\/\/hisham.hm\/htop\/releases\/\">download the latest source code of htop<\/a> \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/11-4.png\" alt=\"\" width=\"863\" height=\"257\" \/><\/p>\n<p>tar -xvzf htop-2.2.0.tar.gz<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/12-4.png\" alt=\"\" width=\"873\" height=\"621\" \/><\/p>\n<p>Start the building process \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/13-4.png\" alt=\"\" width=\"875\" height=\"100\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/14-4.png\" alt=\"\" width=\"884\" height=\"623\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/15-4.png\" alt=\"\" width=\"871\" height=\"621\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/16-2.png\" alt=\"\" width=\"876\" height=\"622\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/17-3.png\" alt=\"\" width=\"876\" height=\"622\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/18-3.png\" alt=\"\" width=\"873\" height=\"617\" \/><\/p>\n<h2>Htop usage<\/h2>\n<p>Fire up the tool \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/19-3.png\" alt=\"\" width=\"873\" height=\"622\" \/><\/p>\n<p>This is the window where you\u2019ll find out every single information about your system.<\/p>\n<p>On the top, you can check out the memory and swap usage.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/20-3.png\" alt=\"\" width=\"871\" height=\"454\" \/><\/p>\n<p>For entering the setup, press F2.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/21-3.png\" alt=\"\" width=\"867\" height=\"617\" \/><\/p>\n<p>Here, you can easily check out what options and info are available on the main window.<\/p>\n<h4>Tree view<\/h4>\n<p>It\u2019s my favorite view as it allows you to understand the hierarchy of each process with ease. Press F5 or \u201ct\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/22-2.png\" alt=\"\" width=\"871\" height=\"614\" \/><\/p>\n<h4>Killing a process<\/h4>\n<p>Select a process and hit F9 or \u201ck\u201d button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/23-1.png\" alt=\"\" width=\"874\" height=\"623\" \/><\/p>\n<p>Then, select \u201cSIGKILL\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/24-2.png\" alt=\"\" width=\"903\" height=\"106\" \/><\/p>\n<p>You can also perform multi-kill. Use \u201cSpacebar\u201d for tagging all the processes you want to kill and then,<\/p>\n<h4>Processes from a single user<\/h4>\n<p>On the main window, hit \u201cu\u201d key.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/25-1.png\" alt=\"\" width=\"868\" height=\"235\" \/><\/p>\n<p>Then, select the user you want to see.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/26-1.png\" alt=\"\" width=\"877\" height=\"621\" \/><\/p>\n<h4>Monitor a particular process<\/h4>\n<p>Highlight the process and hit \u201cF\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/27-1.png\" alt=\"\" width=\"879\" height=\"122\" \/><\/p>\n<p>The highlighting will change the highlighting of the process.<\/p>\n<p>For all the other usage, check out the man page of htop \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/28-1.png\" alt=\"\" width=\"876\" height=\"578\" \/><\/p>\n<p>Or, the htop help page \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/29-1.png\" alt=\"\" width=\"889\" height=\"363\" \/><\/p>\n<p>Enjoy!<\/p>\n<p><a href=\"https:\/\/linuxhint.com\/centos_install_htop\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It doesn\u2019t matter whatever system you\u2019re using \u2013 Windows, Linux or macOS or whatever, having a handy task manager is always a privilege as it allows you get even more control over the system. That\u2019s why there are a number of reasons I love to have Htop at my disposal. Htop is a great, interactive &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/04\/centos-install-htop-linux-hint\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CentOS Install Htop \u2013 Linux Hint&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7129","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=7129"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7129\/revisions"}],"predecessor-version":[{"id":7465,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7129\/revisions\/7465"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=7129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=7129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=7129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}