{"id":13589,"date":"2019-04-03T11:17:09","date_gmt":"2019-04-03T11:17:09","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13589"},"modified":"2019-04-03T11:17:09","modified_gmt":"2019-04-03T11:17:09","slug":"discus-show-colourised-disk-space-usage-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/03\/discus-show-colourised-disk-space-usage-in-linux\/","title":{"rendered":"Discus \u2013 Show Colourised Disk Space Usage in Linux"},"content":{"rendered":"<p>In our last article, we have explained how to use\u00a0<a href=\"https:\/\/www.tecmint.com\/how-to-check-disk-space-in-linux\/\" target=\"_blank\" rel=\"noopener\">df (disk filesystem) utility<\/a>\u00a0to report file system disk space usage in Linux. We have discovered yet a another great utility for the same purpose but with a prettier output, called\u00a0<strong>discus<\/strong>.<\/p>\n<p><strong>Discus<\/strong>\u00a0is a df-like, highly configurable utility for checking disk space utilization in Linux, intended to make\u00a0<strong>df<\/strong>prettier with fancy features such as colored output, bar graphs, and smart formatting of numbers. To configure it, you may copy its main configuration file\u00a0<strong>\/etc\/discusrc<\/strong>\u00a0to\u00a0<strong>~\/.discusrc<\/strong>\u00a0and do your customization in there.<\/p>\n<p><strong>Read Also<\/strong>:\u00a0<a href=\"https:\/\/www.tecmint.com\/pyd-command-to-check-disk-usage\/\" target=\"_blank\" rel=\"noopener\">Pydf an Alternative \u201cdf\u201d Command to Check Disk Usage in Different Colours<\/a><\/p>\n<p>The package\u00a0<strong>discus<\/strong>\u00a0is available to install from the default system repositories using package manager on Linux distribution as shown.<\/p>\n<pre>$ sudo apt install discus\t#Debian\/UBuntu\r\n$ sudo yum install discus\t#RHEL\/CentOS\r\n$ sudo dnf install discus\t#Fedora 22+\r\n<\/pre>\n<p>After installing discus, learn how to use discus with the following examples.<\/p>\n<h3>Discus Command Examples<\/h3>\n<p>Run the\u00a0<strong>discus<\/strong>\u00a0command with the default settings.<\/p>\n<pre>$ discus\r\n<\/pre>\n<div id=\"attachment_30216\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Linux-Filesystem-Disk-Space.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30216\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Linux-Filesystem-Disk-Space.png\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Linux-Filesystem-Disk-Space.png 823w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Linux-Filesystem-Disk-Space-768x684.png 768w\" alt=\"Check Linux Filesystem Disk Space\" width=\"823\" height=\"733\" aria-describedby=\"caption-attachment-30216\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30216\" class=\"wp-caption-text\">Check Linux Filesystem Disk Space<\/p>\n<\/div>\n<p>To disable the color, use the\u00a0<code>-c<\/code>\u00a0flag.<\/p>\n<pre>$ discus -c\r\n<\/pre>\n<p>To display device names instead of graphs, use the\u00a0<code>-d<\/code>\u00a0flag:.<\/p>\n<pre>$ discus -d\r\n<\/pre>\n<div id=\"attachment_30217\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Disk-Space-Usage-By-Devices.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30217\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Disk-Space-Usage-By-Devices.png\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Disk-Space-Usage-By-Devices.png 813w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Check-Disk-Space-Usage-By-Devices-768x686.png 768w\" alt=\"Check Disk Space Usage By Devices\" width=\"813\" height=\"726\" aria-describedby=\"caption-attachment-30217\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30217\" class=\"wp-caption-text\">Check Disk Space Usage By Devices<\/p>\n<\/div>\n<p>If do not want to use smart formatting, you can disable it using the\u00a0<code>-s<\/code>\u00a0switch as shown.<\/p>\n<pre>$ discus -s\r\n<\/pre>\n<p>You can specify the number of digits to right of decimal place using the\u00a0<code>-p<\/code>\u00a0flag.<\/p>\n<pre>$ discus -p 3\r\n<\/pre>\n<p>To display sizes in kilobytes, gigabytes, megabytes, or terabytes use the\u00a0<code>-k<\/code>,\u00a0<code>-g<\/code>,\u00a0<code>-m<\/code>, or\u00a0<code>-t<\/code>\u00a0flags respectively. For example.<\/p>\n<pre>$ discus -m\r\n<\/pre>\n<p>Last but not least, if you want to configure it to your preference, copy its main configuration file\u00a0<strong>\/etc\/discusrc<\/strong>\u00a0to\u00a0<strong>~\/.discusrc<\/strong>\u00a0as shown.<\/p>\n<pre>$ sudo cp \/etc\/discusrc ~\/.discusrc\r\n<\/pre>\n<p>Then open the newly created file and perform your customization.<\/p>\n<pre>$ vim ~\/.discusrc\r\n<\/pre>\n<div id=\"attachment_30218\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Discus-Configuration-Customization.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30218\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Discus-Configuration-Customization.png\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Discus-Configuration-Customization.png 874w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/08\/Discus-Configuration-Customization-768x864.png 768w\" alt=\"Discus Configuration Customization\" width=\"874\" height=\"983\" aria-describedby=\"caption-attachment-30218\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30218\" class=\"wp-caption-text\">Discus Configuration Customization<\/p>\n<\/div>\n<p>For more information, see the discus man page.<\/p>\n<pre>$ man discus \r\n<\/pre>\n<p>You may also like to read these following useful articles on Linux disk space usage.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/check-linux-disk-usage-of-files-and-directories\/\" target=\"_blank\" rel=\"noopener\">10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/find-top-large-directories-and-files-sizes-in-linux\/\" target=\"_blank\" rel=\"noopener\">How to Find Out Top Directories and Files (Disk Space) in Linux<\/a><\/li>\n<\/ol>\n<p>That\u2019s all!\u00a0<strong>Discus<\/strong>\u00a0is a simple utility intended to make\u00a0<strong>df<\/strong>\u00a0command prettier. Try it out and let us know of thoughts in the comments section below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/colourised-disk-space-usage-in-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our last article, we have explained how to use\u00a0df (disk filesystem) utility\u00a0to report file system disk space usage in Linux. We have discovered yet a another great utility for the same purpose but with a prettier output, called\u00a0discus. Discus\u00a0is a df-like, highly configurable utility for checking disk space utilization in Linux, intended to make\u00a0dfprettier &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/03\/discus-show-colourised-disk-space-usage-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Discus \u2013 Show Colourised Disk Space Usage in Linux&#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-13589","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\/13589","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=13589"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13589\/revisions"}],"predecessor-version":[{"id":13590,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13589\/revisions\/13590"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}