But the output leaves a bit to be desired. Typing just 'du' will print a line for each subdirectory from the tree down. This could be several screenfuls of text and you really only want to know what the summary is from the current working directory.
The key the du max depth switch, which is the -d option (or --max-depth=NUM in GNU speak). I do this:
du -d 1And it just summarizes the subdirectories in the current directory I am in. I usually also use the -h option to get more human-readable sizes.
So now instead of screenfuls of subdirectories nested 47 directories deep, I see something like this:
$ du -h -d 1Enjoy.