linux view disk space usage

Disk Space Usage Visual Tools

Some great tools for viewing disk space usage are:
pydf (essential df with colors)
Philesight (Web-based implementation of Filelight)
ncdu (awesome text-only GUI!)

Philesight

Philesight is a tool to browse your filesystem and see where the diskspace is being used at a glance. Philesight is implemented as a simple command line program that generates PNG files; a wrapper CGI script is supplied to allow navigating through the filesystem. Click the image on top for an online demo.
Philesight is actually a clone of the filelight program. Wheres filelight is ment as an interactive, user friendly application for the X-windows desktop, philesight is designed to run on a remote server without graphical user interface.

Installing pydf

Debian

# sudo apt-get install pydf

Redhat/CentOS

# yum install pydf

Install Philesight

Debian

# apt-get install libdb4.2-ruby1.8 libcairo-ruby1.8 

Redhat/Centos 6

# yum -y install ruby
# cd /etc/yum.repos.d/ && wget http://centos.karan.org/kbsingh-CentOS-Extras.repo 
# yum -y --enablerepo=kbs-CentOS-Testing install bitmap-fonts ruby-bdb ruby-cairo

ncdu

ncdu
ncdu done scanning
Amazing!

Installing ncdu

yum install ncdu

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>