You're viewing a comment by SundaraRaman and its responses.

April 21, 2010, 10:50

I have used du -sh * in the past for listing the sizes of the subdirectories and files under the current directory. The same effect (of listing files too) can be achieved with the given --max-depth argument by adding --all also (du -s --all --max-depth=1), but we are lazy and less typing is better, isn't it? :)

Comment Responses

April 21, 2010, 16:37

Make it an alias then!

alias dum='du --max-depth=1'
alias duma='dum -a'

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "lcd_212": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.