Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

my server is getting really full. It's just 10GB server and it's just have command-line. It has Ubuntu. Can anyone tell me any application which can analyze my HDD and find the largest files and folders.

The best would be if it just scanned server, generated a log and then I could check it and see the biggest folders and files.

Thank you very much.

share|improve this question
up vote 3 down vote accepted

Take a look at ncdu, it's available in the Ubuntu repo so

apt-get install ncdu

will install it if required. When you run it it will analyze the directory usage and present you with a sorted list that you can navigate.

share|improve this answer
It works great. Thank you very much! – user171019 Apr 24 '13 at 17:37

Or you could act like a real Linux user:). Without installing any extra tools, you can use du and perl. The following command displays shows usage of each folder / file from smallest to largest on the box:

du -k | sort -n | perl -ne 'if ( /^(\d+)\s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024)); printf  ("%6.1f\t%s\t%25s  %s\n",($1/(2**(10*$m))),(("K","M","G","T","P")[$m]),"*"x (1.5*$l),$2);}'
share|improve this answer

I found that when I was looking at disk usage -

Also Filelight has been around for awhile.

You can install from the source:

cd ~
tar xjf filelight-1.0.tar.bz2
cd filelight-1.0
./configure --disable-debug && make
su -c 'make install'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.