{"id":12153,"date":"2019-03-22T12:36:50","date_gmt":"2019-03-22T12:36:50","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12153"},"modified":"2019-03-22T12:36:50","modified_gmt":"2019-03-22T12:36:50","slug":"install-htop-2-0-linux-process-monitoring-for-rhel-centos-fedora","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/22\/install-htop-2-0-linux-process-monitoring-for-rhel-centos-fedora\/","title":{"rendered":"Install Htop 2.0 \u2013 Linux Process Monitoring for RHEL, CentOS &#038; Fedora"},"content":{"rendered":"<p>This article is the continuation of our\u00a0<a href=\"https:\/\/www.tecmint.com\/command-line-tools-to-monitor-linux-performance\/\" target=\"_blank\" rel=\"noopener\">Linux system monitoring<\/a>\u00a0series, today we\u2019re talking about the most popular monitoring tool called\u00a0<strong>htop<\/strong>, which is just reached to version\u00a0<strong>2.0.2<\/strong>\u00a0and comes with some cool new features.<\/p>\n<div id=\"attachment_18731\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Linux-Process-Monitoring-Tool.png\" rel=\"attachment wp-att-18731\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18731\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Linux-Process-Monitoring-Tool.png\" alt=\"Htop Linux Process Monitoring Tool\" width=\"720\" height=\"345\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Htop 2.0: Linux Process Monitoring<\/p>\n<\/div>\n<p><strong>Htop<\/strong>\u00a0is an interactive real time process monitoring application for Linux\/Unix like systems and also a handy alternative to\u00a0<a href=\"https:\/\/www.tecmint.com\/12-top-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">top command<\/a>, which is default process monitoring tool that comes with pre-installed on all Linux operating systems.<\/p>\n<p><strong>Htop<\/strong>\u00a0has numerous other user-friendly features, which are not available under top command and they are:<\/p>\n<ol>\n<li>In htop you can scroll vertically to view the full process list, and scroll horizontally to view the full command lines.<\/li>\n<li>It starts very quickly as compared top, because it doesn\u2019t wait to fetch data during startup.<\/li>\n<li>In htop you can kill more than one processes at once without inserting their PIDs.<\/li>\n<li>In htop you no longer needed to enter process number or priority value to re-nice a process.<\/li>\n<li>Press \u201ce\u201d to print the set of environment variables for a process.<\/li>\n<li>Use mouse to select list items.<\/li>\n<\/ol>\n<h3>Install Htop Using Binary Packages in Linux<\/h3>\n<p><strong>Important<\/strong>: Following binary installation, will give you the available htop version\u00a0<strong>1.0.3<\/strong>\u00a0or\u00a0<strong>1.0.2<\/strong>\u00a0in most distributions, so if you\u2019re looking for\u00a0<strong>Htop 2.0.2<\/strong>\u00a0version, then I recommend you to follow Source installation section as shown below:<\/p>\n<p>To install\u00a0<strong>Htop<\/strong>\u00a0on\u00a0<strong>RHEL 7\/6\/5<\/strong>\u00a0and\u00a0<strong>CentOS 7\/6\/5<\/strong>, your system must have\u00a0<strong>EPEL<\/strong>\u00a0repository installed and enabled, to do so run the following commands on your respective distributions to install and enable it for your system architecture (<strong>32bit<\/strong>\u00a0or\u00a0<strong>64bit<\/strong>).<\/p>\n<h4>On RHEL\/CentOS \u2013 32-bit OS<\/h4>\n<pre><strong>-------------- For RHEL\/CentOS 6 --------------<\/strong>\r\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\r\n# rpm -ihv epel-release-6-8.noarch.rpm\r\n\r\n<strong>-------------- For RHEL\/CentOS 5 --------------<\/strong>\r\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/5\/i386\/epel-release-5-4.noarch.rpm\r\n# rpm -ihv epel-release-5-4.noarch.rpm\r\n<\/pre>\n<h4>On RHEL\/CentOS \u2013 64-bit OS<\/h4>\n<pre><strong>-------------- For RHEL\/CentOS 7 --------------<\/strong>\r\n# wget dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/Packages\/e\/epel-release-7-11.noarch.rpm\r\n# rpm -ihv epel-release-7-11.noarch.rpm \r\n\r\n<strong>-------------- For RHEL\/CentOS 6 --------------<\/strong>\r\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\r\n# rpm -ihv epel-release-6-8.noarch.rpm\r\n\r\n<strong>-------------- For RHEL\/CentOS 5 --------------<\/strong>\r\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/5\/x86_64\/epel-release-5-4.noarch.rpm\r\n# rpm -ihv epel-release-5-4.noarch.rpm<\/pre>\n<p>Once\u00a0<strong>EPEL<\/strong>\u00a0repository has been installed, you can hit the following\u00a0<a href=\"https:\/\/www.tecmint.com\/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement\/\" target=\"_blank\" rel=\"noopener\">yum command<\/a>\u00a0to fetch and install the htop package as shown.<\/p>\n<pre># yum install htop\r\n<\/pre>\n<h4>On Fedora OS<\/h4>\n<p><strong>Fedora<\/strong>\u00a0users can easily install htop using\u00a0<strong>Fedora Extras<\/strong>\u00a0repository by typing:<\/p>\n<pre># yum install htop\r\n# dnf install htop      [On <strong>Fedora 22+<\/strong> releases]\r\n<\/pre>\n<h4>On Debian and Ubuntu<\/h4>\n<p>In\u00a0<strong>Debian<\/strong>\u00a0and\u00a0<strong>Ubuntu<\/strong>, you can fetch htop by typing:<\/p>\n<pre># sudo apt-get install htop\r\n<\/pre>\n<h3>Compile and Install Htop from Source Packages<\/h3>\n<p>To install\u00a0<strong>Htop 2.0.2<\/strong>\u00a0version, you must have\u00a0<strong>Development Tools<\/strong>\u00a0and\u00a0<strong>Ncurses<\/strong>\u00a0installed on your system, to do so run the following series of commands on your respective distributions.<\/p>\n<h4>On RHEL\/CentOS and Fedora<\/h4>\n<pre># yum groupinstall \"Development Tools\"\r\n# yum install ncurses ncurses-devel\r\n# wget http:\/\/hisham.hm\/htop\/releases\/2.0.2\/htop-2.0.2.tar.gz\r\n# tar xvfvz htop-2.0.2.tar.gz\r\n# cd htop-2.0.2\r\n<\/pre>\n<h4>On Debian and Ubuntu<\/h4>\n<pre>$ sudo apt-get install build-essential  \r\n$ sudo apt-get install libncurses5-dev libncursesw5-dev\r\n$ wget http:\/\/hisham.hm\/htop\/releases\/2.0.2\/htop-2.0.2.tar.gz\r\n$ tar xvfvz htop-2.0.2.tar.gz\r\n$ cd htop-2.0.2\r\n<\/pre>\n<p>Next, run the\u00a0<strong>configure<\/strong>\u00a0and\u00a0<strong>make<\/strong>\u00a0script to install and compile htop.<\/p>\n<pre># .\/configure\r\n# make\r\n# make install\r\n<\/pre>\n<h3>How do I use htop?<\/h3>\n<p>Now run the htop monitoring tool by executing following command on the terminal.<\/p>\n<pre># htop<\/pre>\n<h4>Htop is having three sections mainly<\/h4>\n<ol>\n<li>Header, where we can see info like\u00a0<strong>CPU<\/strong>,\u00a0<strong>Memory<\/strong>,\u00a0<strong>Swap<\/strong>\u00a0and also shows tasks,\u00a0<strong>load average<\/strong>\u00a0and\u00a0<strong>Up-time<\/strong>.<\/li>\n<li>List of processes sorted by\u00a0<strong>CPU<\/strong>\u00a0utilization.<\/li>\n<li>Footer shows different options like\u00a0<strong>help<\/strong>,\u00a0<strong>setup<\/strong>,\u00a0<strong>filter<\/strong>\u00a0<strong>tree<\/strong>\u00a0<strong>kill<\/strong>,\u00a0<strong>nice<\/strong>\u00a0,\u00a0<strong>quit<\/strong>\u00a0etc.<\/li>\n<\/ol>\n<div id=\"attachment_18727\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Linux-Processes-Monitoring.png\" rel=\"attachment wp-att-18727\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18727\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Linux-Processes-Monitoring.png\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Linux-Processes-Monitoring.png 1002w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Linux-Processes-Monitoring-768x474.png 768w\" alt=\"Htop Linux Processes Monitoring\" width=\"1002\" height=\"618\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Htop Linux Processes Monitoring<\/p>\n<\/div>\n<p>Press\u00a0<strong>F2<\/strong>\u00a0or\u00a0<strong>S<\/strong>\u00a0for setup menu &gt; there are four columns i.e\u00a0<strong>Setup<\/strong>,\u00a0<strong>Left Column<\/strong>,\u00a0<strong>Right Column<\/strong>\u00a0and\u00a0<strong>Available Meters<\/strong>.<\/p>\n<p>Here, you can configure the meters printed at the top of the window, set various display options, select among color patterns and choose which columns are printed in which order.<\/p>\n<div id=\"attachment_18728\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Setup-Screen.png\" rel=\"attachment wp-att-18728\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18728\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Setup-Screen.png\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Setup-Screen.png 1002w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Setup-Screen-768x474.png 768w\" alt=\"Htop Setup Screen\" width=\"1002\" height=\"618\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Htop Setup Screen<\/p>\n<\/div>\n<p>Type\u00a0<strong>tree<\/strong>\u00a0or t to display processes tree view.<\/p>\n<div id=\"attachment_18729\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Process-View-in-Tree-Format.png\" rel=\"attachment wp-att-18729\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18729\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Process-View-in-Tree-Format.png\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Process-View-in-Tree-Format.png 1002w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Process-View-in-Tree-Format-768x474.png 768w\" alt=\"Htop Process View in Tree Format\" width=\"1002\" height=\"618\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Htop Process View in Tree Format<\/p>\n<\/div>\n<p>You can refer function keys displayed at footer to use this nifty htop application to monitor Linux running processes. However, we advise to use character keys or shortcut keys instead of function keys as it may have mapped with some other functions during secure connection.<\/p>\n<h4>Htop Shortcut and Function Keys<\/h4>\n<p>Some of the shortcut and function keys and its functionality to interact with htop.<\/p>\n<div id=\"attachment_708\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Shortcuts.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-708 \" title=\"Htop Command Shortcuts and Keys\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/08\/Htop-Shortcuts.png\" alt=\"Htop Command Shortcuts and Keys\" width=\"567\" height=\"191\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Htop Command Shortcuts and Keys<\/p>\n<p><a style=\"font-size: 1rem;\" href=\"https:\/\/www.tecmint.com\/install-htop-linux-process-monitoring-for-rhel-centos-fedora\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This article is the continuation of our\u00a0Linux system monitoring\u00a0series, today we\u2019re talking about the most popular monitoring tool called\u00a0htop, which is just reached to version\u00a02.0.2\u00a0and comes with some cool new features. Htop 2.0: Linux Process Monitoring Htop\u00a0is an interactive real time process monitoring application for Linux\/Unix like systems and also a handy alternative to\u00a0top command, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/22\/install-htop-2-0-linux-process-monitoring-for-rhel-centos-fedora\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Htop 2.0 \u2013 Linux Process Monitoring for RHEL, CentOS &#038; Fedora&#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-12153","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\/12153","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=12153"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12153\/revisions"}],"predecessor-version":[{"id":12154,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12153\/revisions\/12154"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}