Try these
du -h ./
For the most part this works. If you have spaces in file/directory
names than you may get some errors, but I'm sure you can work around
those if needed:
ls -1drt *| xargs du -h --summarize
You could also try
du -hc --max-depth=1
This will give you all the directories in the current directory, and a total at the bottom. Play with the --max-depth to dig down further in the structure and get more fine-grained results.
You can run this with a pipe to grep "G" to do a quick search of folders that are large enough to be measured in gigabytes. It will pull any directories with a capital G in them, but there aren't many of those so it works for me.
du -hc --max-depth=1 | grep "G"
No comments:
Post a Comment