largest size directory in unix

I want to find the which directory under a directory occupy the maximum size is there is any command to find please help

Some pointers: check man pages for df and sort. You should be able to figure it out then.

Try du and sort.

Oops.. df and du... really sorry for the mixup!

what unix are you using?

check bdf for hp-ux

I use SunOS and HP-UX. I said that I mixed up with df and du: the OP wants to find the directory with the largest size and the code for that is

du -sk *|sort -nr

I mistakenly told the OP to check man pages for df and sort, while I should have asked the OP to check man pages for du and sort.