{"id":110186,"date":"2020-11-11T18:00:38","date_gmt":"2020-11-11T15:00:38","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/color-bars-in-htop-what-do-they-mean-cloudsavvy-it\/"},"modified":"2020-11-11T18:00:38","modified_gmt":"2020-11-11T15:00:38","slug":"color-bars-in-htop-what-do-they-mean-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/color-bars-in-htop-what-do-they-mean-cloudsavvy-it\/","title":{"rendered":"#Color Bars in htop \u2013 What Do They Mean? \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3a1c8fd9052\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3a1c8fd9052\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/color-bars-in-htop-what-do-they-mean-cloudsavvy-it\/#Installing_htop\" >Installing htop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/color-bars-in-htop-what-do-they-mean-cloudsavvy-it\/#htop_%E2%80%93_the_Great_Linux_Task_Manager\" >htop \u2013 the Great Linux Task Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/color-bars-in-htop-what-do-they-mean-cloudsavvy-it\/#Whats_Up_With_All_the_Colors\" >What\u2019s Up With All the Colors?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/color-bars-in-htop-what-do-they-mean-cloudsavvy-it\/#The_Color_Key\" >The Color Key<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/color-bars-in-htop-what-do-they-mean-cloudsavvy-it\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#Color Bars in htop \u2013 What Do They Mean? \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7852\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/291d3b596d51b3d37371222b1f35be28\/p\/uploads\/2020\/11\/fa6f6ce6-1.png\" alt=\"htop color output\" width=\"1234\" height=\"412\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Ever wondered what all the red, green, orange, aqua and dark blue bars mean in htop? Even if you are not familiar with htop, this article will introduce you to the great Linux task manager and it\u2019s color key.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Installing_htop\"><\/span>Installing htop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you haven\u2019t got htop installed yet, you can install itat the terminal prompt, by using apt or yum:<\/p>\n<p>To install htop on your Debian\/Apt based Linux distribution (Like Ubuntu and Mint), do:<\/p>\n<p><code>sudo apt install htop<\/code><\/p>\n<p>To install\u00a0htop\u00a0 on\u00a0your RedHat\/Yum based Linux distribution (Like RedHat and Fedora), do:<\/p>\n<p><code>sudo yum install htop<\/code><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"htop_%E2%80%93_the_Great_Linux_Task_Manager\"><\/span>htop \u2013 the Great Linux Task Manager<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Many users are familiar with the Windows task manager. That handy little utility which lets you kill processes when they are hanging and have a quick glance on how your system is doing hardware wise.<\/p>\n<p>But what we can use in Linux? While some different flavors of Linux may come with their own task manager (like System Monitor in Ubuntu), such tools may not be universal. They may also lack features and be unusable from the command line.<\/p>\n<p>Welcome to htop, the terminal based, full fledged task manager which can also be started in various distributions directly from the Desktop, bypassing the need to use a terminal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7849\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/522257927e281a7a754b0a5b4f979dbc\/p\/uploads\/2020\/11\/e927f5ad.png\" alt=\"Full htop output\" width=\"948\" height=\"599\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>htop allows you to browse through processes running on the system, sort them in various ways (try clicking one of the headers to sort by that column, and click it again to reverse sort), to kill processes when needed using a variety of kill signals (to do so, select a process to kill, press F9 and select a kill signal), and a variety of other monitoring and process management features.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Whats_Up_With_All_the_Colors\"><\/span>What\u2019s Up With All the Colors?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>So far we only had a peek at the bottom part of the htop GUI: the processlist and htop features to manage each process. However, the top part of the htop GUI is where all that information is combined, and where we can monitor how well our hardware is performing.<\/p>\n<p>If you like to learn more about how to interpret this output, you can review our <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/redirect.viglink.com?u=URL&amp;key=204a528a336ede4177fff0d84a044482\">Is Your Linux System Memory, CPU or IO Bound?<\/a> article.<\/p>\n<p>Looking at the bars and statistics for memory (Mem), swap (Swp) and CPU threads (1 bar per thread), we quickly see that a large variety of colors is used to provide more detailed information about each component and it\u2019s status bar. We see red, green, orange, dark blue and potentially aqua, and there also some offset between bars of different types. For example, the memory bar has orange whereas the CPU threads do not.<\/p>\n<p>All of these colors look much better then the alternative: htop without color coding:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7850\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/45b303c4859e0b6b94016114aab0aa9f\/p\/uploads\/2020\/11\/114f079b.png\" alt=\"htop monochrome output\" width=\"966\" height=\"599\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can start htop in monochrome mode by invoking <code>htop -C<\/code> (uppercase C required, lowercase will not work) at the command line.<\/p>\n<p>Putting monochrome output on the side and returning to our more pleasant colorful and default htop output, what do each of the colors signify?<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"The_Color_Key\"><\/span>The Color Key<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The htop color key may seem hard to find! If we access the htop manual (<code>man htop<\/code>) there is no information on colors, other then how to disable them using the <code>-C<\/code> option discussed earlier. The answer is to press the F1 key which will lead us to a small help screen with the color key as well as some handy keyboard shortcuts:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7851\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/ff416eb0610c8a07561bc0d06d7bc2b8\/p\/uploads\/2020\/11\/a0fe5c8a.png\" alt=\"htop keyboard shortcuts and color key\" width=\"729\" height=\"473\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>For the CPU threads usage Bar, the <em>dark blue<\/em> bars are low-priority processes, the <em>green<\/em> bars are normal processes, the <em>red<\/em> bars are kernel time and (though you may not see this), the <em>aqua<\/em> colored bars are virtualized processes, when present.<\/p>\n<p>A full CPU thread usage bar will be made up out of most of these types of processes \u2013 after all, your kernel is always running etc.<\/p>\n<p>Next we can see the Memory (Mem) bar \u2013 made up out of green, dark blue and orange bars.<\/p>\n<p>The <em>green<\/em> bars indicate what memory is used, the <em>blue<\/em> bars show us how much was allocated to buffers and finally the <em>orange<\/em> bars shows the amount of memory allocated to cache. It should be noted that buffer and cache memory can, in part, be considered <i>available memory<\/i> (type <code>free -g<\/code> at the command line for a more detailed analysis output, or <code>free -m<\/code> if your system has less then 2-3 Gigabyte total memory).<\/p>\n<p>Finally, the swap bar has only a single bar color,<em> red<\/em>, indicating how much of the swap file, or swap partition is in use.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Knowing what colors are used by htop enables one to better understand the rich information htop is providing. This information can often be obtained with in a simple glance at htop output. Enjoy finding out more about your desktop computer or server through htop!\n<\/p><\/div>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener noreferrer\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/7847\/color-bars-in-htop-what-do-they-mean\/\" target=\"_blank\" rel=\"noopener noreferrer\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#Color Bars in htop \u2013 What Do They Mean? \u2013 CloudSavvy IT&#8221; Ever wondered what all the red, green, orange, aqua and dark blue bars mean in htop? Even if you are not familiar with htop, this article will introduce you to the great Linux task manager and it\u2019s color key. Installing htop If you&#8230;<\/p>\n","protected":false},"author":1,"featured_media":110187,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/11\/fa6f6ce6-1.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-110186","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/110186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=110186"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/110186\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/110187"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=110186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=110186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=110186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}