On Tue, 12 Oct 2004, Harshwardhan Nagaonkar wrote:
I've been doing this task using "du -h --max-depth=1" on my home directory to find out the sizes of each directory.


I always use 'du -h *' because it's shorter. (-:

<snip/>

Except that 'du -h *' will print out all the directories _as well as_ all the subdirectories and their subdirectories and their subdirectories and so on.

'--max-depth=1' will just limit to the current directory's children files/directories, not their sub directories. This way I guess you don't recurse everywhere! =)

I think what he meant was "du -sh *". Isn't that (basically) identical to max-depth=1 ? (That's what I always do, regardless.)


  ~ ross

--

This sentence would be seven words long if it were six words shorter.

____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to