Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

In Windows I could easily do this by navigating the directory tree and looking at the sizes. But in Linux, you need to run a command and, what's worse, it takes a lot of time:

$ du -sh /some/dir

I'm using a disk of 1 TB, but for some reason I only have like 50 GB left, and I can't seem to find what's taking so much space.

I remember that in Ubuntu I had to manually remove old kernel images. But now I'm on Fedora and dpkg -l | grep linux-image doesn't work, and I guess Fedora removes them automatically anyway.

Any ideas?

share|improve this question

marked as duplicate by slhck Sep 6 '13 at 21:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers

You can try to find big files in your disk with a command such as:

find . -size +100M -type f -exec ls -lh {} \;

In this example, only files with 100 Mega Bytes (units of 1048576 bytes) or more are displayed. That value can be tweaked as you please.

share|improve this answer
    
btw - since you want to avoid processing /proc .. I made the following adjustment to your command: for dname in *; do if [ $dname != "proc" ]; then find $D -size +10M -type f -exec ls -lh {} \;; fi; done (presumes running from /) –  warren Jun 6 at 2:50
add comment

You can use this

$ du -h --max-depth=1  

You can use with tree also

tree -h >> file    
share|improve this answer
add comment

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