{"id":11362,"date":"2019-03-13T07:17:58","date_gmt":"2019-03-13T07:17:58","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11362"},"modified":"2019-03-13T07:17:58","modified_gmt":"2019-03-13T07:17:58","slug":"ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/13\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/","title":{"rendered":"Ncdu a NCurses Based Disk Usage Analyzer and Tracker"},"content":{"rendered":"<p><strong>ncdu<\/strong>\u00a0(<strong>NCurses Disk Usage<\/strong>) is a command line version of the most popular \u201c<a href=\"https:\/\/www.tecmint.com\/check-linux-disk-usage-of-files-and-directories\/\" target=\"_blank\" rel=\"noopener\">du command<\/a>\u201c. It is based on\u00a0<strong>ncurses<\/strong>\u00a0and provides a fastest way to analyse and track what files and directories are using your disk space in\u00a0<strong>Linux<\/strong>. It provides an excellent\u00a0<strong>ncurses<\/strong>\u00a0based interface to display the information in more intuitive way like columns for how much disk space used in\u00a0<strong>megabytes<\/strong>,\u00a0<strong>gigabytes<\/strong>\u00a0and\u00a0<strong>graphical bar<\/strong>\u00a0usage,\u00a0<strong>file\/directory names<\/strong>,\u00a0<strong>file deletion<\/strong>,\u00a0<strong>refresh<\/strong>, etc. ncdu aims to be simple, fast and easy to use program and runs on any minimal\u00a0<strong>Linux\/Unix<\/strong>\u00a0based system with ncurses installed.<\/p>\n<div id=\"attachment_2899\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/ncdu-commands\/\" rel=\"attachment wp-att-2899\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2899\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-commands.png\" alt=\"ncdu commands\" width=\"435\" height=\"321\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install NCDU Tool<\/p>\n<\/div>\n<p>This article explains you through the process of installing and using\u00a0<strong>NCDU<\/strong>\u00a0program on a\u00a0<strong>Linux<\/strong>\u00a0system.<\/p>\n<h3>Installing ncdu (NCurses Disk Usage)<\/h3>\n<p>The \u201c<strong>ncdu<\/strong>\u201d package is not available under\u00a0<strong>RHEL<\/strong>,\u00a0<strong>CentOS<\/strong>,\u00a0<strong>Fedora<\/strong>,\u00a0<strong>Scientific Linux<\/strong>\u00a0distributions, you must have\u00a0<a href=\"https:\/\/www.tecmint.com\/how-to-enable-epel-repository-for-rhel-centos-6-5\/\" target=\"_blank\" rel=\"noopener\">epel repository<\/a>\u00a0enabled on your system to install it using\u00a0<strong>yum<\/strong>\u00a0command.<\/p>\n<pre># yum install ncdu<\/pre>\n<p>The \u201c<strong>ncdu<\/strong>\u201d utility is available on\u00a0<strong>Ubuntu<\/strong>,\u00a0<strong>Linux Mint<\/strong>\u00a0and\u00a0<strong>Debian<\/strong>\u00a0from the package manager system, use the following\u00a0<strong>apt-get<\/strong>\u00a0command to install it.<\/p>\n<pre>$ sudo apt-get install ncdu<\/pre>\n<h3>How Do I Use ncdu<\/h3>\n<article class=\"post-2893 post type-post status-publish format-standard has-post-thumbnail hentry category-linux-commands\">\n<div class=\"post-inner group\">\n<div class=\"entry share\">\n<div class=\"entry-inner\">\n<p>Simply, run the \u201c<strong>ncdu<\/strong>\u201d command from the terminal. Once you run, it will start scanning for number of files and directories and disk usage of current working directory.<\/p>\n<pre># ncdu\r\n<\/pre>\n<h5>Scanning<\/h5>\n<div id=\"attachment_2894\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/ncdu-1\/\" rel=\"attachment wp-att-2894\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2894\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-1-620x387.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-1-620x387.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-1-1024x640.jpg 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-1.jpg 1440w\" alt=\"NCDU Scanning\" width=\"620\" height=\"387\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">NCDU Scanning<\/p>\n<\/div>\n<h5>Tree View With Sizes<\/h5>\n<p>Once, scanning completes, it will present the tree structure of files and folders along with their disk usage in human readable format with graphical bar presentation.<\/p>\n<div id=\"attachment_2895\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/ncdu-2\/\" rel=\"attachment wp-att-2895\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2895\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-2-620x387.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-2-620x387.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-2-1024x640.jpg 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-2.jpg 1440w\" alt=\"NCDU Disk Usage Tree View\" width=\"620\" height=\"387\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">NCDU Disk Usage Tree View<\/p>\n<\/div>\n<h5>Directory Information<\/h5>\n<p>Press \u201c<strong>i<\/strong>\u201d to see the selected directory information like full path, disk usage, apparent size. Again, hit \u201c<strong>i<\/strong>\u201d to hide the window.<\/p>\n<div id=\"attachment_2896\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/ncdu-3\/\" rel=\"attachment wp-att-2896\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2896\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-3-620x387.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-3-620x387.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-3-1024x640.jpg 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-3.jpg 1440w\" alt=\"NCDU Directory Information\" width=\"620\" height=\"387\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">NCDU Directory Information<\/p>\n<\/div>\n<h5>Delete Confirmation<\/h5>\n<p>Press \u201c<strong>-d<\/strong>\u201d to delete selected file or directory, before deleting it will prompt you for confirmation. Press \u201c<strong>Yes<\/strong>\u201d or \u201c<strong>No<\/strong>\u201c.<\/p>\n<div id=\"attachment_2897\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/ncdu-4\/\" rel=\"attachment wp-att-2897\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2897\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-4-620x387.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-4-620x387.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-4-1024x640.jpg 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-4.jpg 1440w\" alt=\"NCDU Delete Confirmation\" width=\"620\" height=\"387\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">NCDU Delete Confirmation<\/p>\n<\/div>\n<h5>ncdup Help Window<\/h5>\n<p>Press \u201c<strong>Shift+?<\/strong>\u201d to see help window with ncdu available options. You can use arrow keys to move up and down for more options.<\/p>\n<div id=\"attachment_2898\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/ncdu-5\/\" rel=\"attachment wp-att-2898\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2898\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-5-620x387.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-5-620x387.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-5-1024x640.jpg 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/05\/ncdu-5.jpg 1440w\" alt=\"NCDU Help Screen\" width=\"620\" height=\"387\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">NCDU Help Screen<\/p>\n<\/div>\n<p>Use \u201c<strong>q<\/strong>\u201d to quit interface. Here are list of available options for ncdu, you can check them.<\/p>\n<pre> \u250c\u2500\u2500\u2500ncdu help\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25001:Keys\u2500\u2500\u25002:Format\u2500\u2500\u25003:About\u2500\u2500\u2500\u2500\u2500\u2510\r\n \u2502         \t\t\t\t\t\t       \u2502\r\n \u2502   up, \tk  Move cursor up                              \u2502\r\n \u2502   down, \tj  Move cursor down                            \u2502\r\n \u2502   right\/enter   Open selected directory                     \u2502\r\n \u2502   left, &lt;, \th  Open parent directory                       \u2502\r\n \u2502   \t      \tn  Sort by name (ascending\/descending)         \u2502\r\n \u2502   \t\ts  Sort by size (ascending\/descending)         \u2502\r\n \u2502 \t\td  Delete selected file or directory           \u2502\r\n \u2502  \t\tt  Toggle dirs before files when sorting       \u2502\r\n \u2502  \t\tg  Show percentage and\/or graph                \u2502\r\n \u2502 \t\ta  Toggle between apparent size and disk usage \u2502\r\n \u2502\t\te  Show\/hide hidden or excluded files          \u2502\r\n \u2502           \ti  Show information about selected item        \u2502\r\n \u2502           \tr  Recalculate the current directory           \u2502\r\n \u2502           \tq  Quit ncdu                                   \u2502\r\n \u2502          \t                                               \u2502\r\n \u2502                                     Press q to continue     \u2502\r\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<p><a href=\"https:\/\/www.tecmint.com\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ncdu\u00a0(NCurses Disk Usage) is a command line version of the most popular \u201cdu command\u201c. It is based on\u00a0ncurses\u00a0and provides a fastest way to analyse and track what files and directories are using your disk space in\u00a0Linux. It provides an excellent\u00a0ncurses\u00a0based interface to display the information in more intuitive way like columns for how much disk &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/13\/ncdu-a-ncurses-based-disk-usage-analyzer-and-tracker\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Ncdu a NCurses Based Disk Usage Analyzer and Tracker&#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-11362","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\/11362","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=11362"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11362\/revisions"}],"predecessor-version":[{"id":11363,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11362\/revisions\/11363"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}