This will list all directories at the root level sorted alphabetically with their size printed in an easy to read format
du -sh /*
To list all subdirectories for a specified parent directory, use this command and specify the parent directory path like “usr” in this example.
du -h –max-depth=1 /usr
or run this in for current directory
du -h –max-depth=1 2>/dev/null
List size of files within a directory
ls -s
Continue Reading
Hi I'm Nick Bartlett and thanks for visiting my blog. I'm not much of a writer; many of my posts are short and to the point while others are meant to be a reference for myself and other web developers.