This is the server info(uname -a)
SunOS Tiger2 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-Enterprise
And I want to check some directory size including its all children directories.
I fount du -sh /some command, but it doesn't work.
My server says -h is invalid.
I guess it's too old maybe.
Thank you.
man du. I believe you'll finddu -sk /somewill give you the summary size in kilobytes. Omit thekand it will be in 0.5 KiB blocks. Omit the-sand it will give you the size of each directory (and its descendents) as it processes it. If you try to use options that are not supported, expect to get messages about invalid options. – Jonathan Leffler Sep 7 '11 at 2:05