Results 1 to 3 of 3
I need a command to list the total sizes for all the directories in a mounted drive.
I tried df and du.
df list the total size for the mounted ...
- 03-23-2010 #1
command to list directories and sizes.
I need a command to list the total sizes for all the directories in a mounted drive.
I tried df and du.
df list the total size for the mounted drive
du depending on what option I give it either list the total size or list all the sizes for every file on the drive.
All I want to know is the sizes of all the directories on the mounted drive.
This is a windows vista hard-drive and for some reason ubuntu is reporting a 50 GB partition and only 10GB free, I want to know what's taking up all the free space. I can't find anything in the file browser, so far I've only managed to count up about 10GB of used space so where is the other 30GB.
- 03-23-2010 #2Linux Newbie
- Join Date
- Oct 2008
- Posts
- 140
Maybe you're looking for ls?
Sorry, I have to go out or I'd go through the manual, you could do it yourself
[you@Ypurbox~]$ man ls
- 03-24-2010 #3
du by default should only list directories, recursively from the starting directory.
The following works for me:
So if your windows partition was on /media/windows it would beCode:du -h /path/to/directory | sort -rh | less
Also very handy is ncdu.Code:du -h /media/windows | sort -rh | less


Reply With Quote