Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I want any alternative for Ubuntu 11.04 that runs on the command window that allows me to see which folder use up a lot of space.

P.S. It's for my VPS.

share|improve this question
What have you tried? Have you looked at the results of apt-cache search midnight ? – belacqua Jul 11 '12 at 15:57
up vote 4 down vote accepted

In Midnight Commander go to menu Command and select Show directory sizes.

Keyboard shortcut is Ctrl+space

share|improve this answer

Try using tree

sudo apt-get install tree

Then run tree /mainfolder/folder1 -d

host@hostname:~$ tree /etc/apt -d -h   ( -d shows only directory ) 
├── [4.0K]  apt.conf.d   <------ where 4k is size of directory 
├── [4.0K]  preferences.d
├── [4.0K]  sources.list.d
└── [4.0K]  trusted.gpg.d

You can further refer here at Tree manpage for preferred Usage.

share|improve this answer

There is a program called ranger that allows you to do this. Download and install ranger. sudo apt-get install ranger

Then, run ranger :set display_size_in_main_column true. That will make it display the file size in the main column whenever ranger is run. You can navigate through the columns with your arrow keys. See man ranger for more details.

You can download and install it from the site; instructions are there as well.

share|improve this answer
Ranger is not available for natty – HackToHell Jul 11 '12 at 14:34
@HackToHell Download it from the ranger homepage. – Nathaniel Pisarski Jul 11 '12 at 16:34
Ranger is nice... – HackToHell Jul 11 '12 at 17:10

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.