Operating System - HP-UX
1753779 Members
7613 Online
108799 Solutions
New Discussion

how to find the size is folder wise

 
rajesh73
Super Advisor

how to find the size is folder wise

i have 200 folders . i need to list the folders size wise

 

first we need to check  1 to 20 folder size - what is the command

 

second we need to check 20 to 50 folder size -what is the command

 

 

Folder example - a0 t0 a200

 

 

P.S.This thread has been moved from HP-UX>System Administration to HP-UX > languages- HP Forums Moderator

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: how to find the size directory wise

>I need to list the directories size wise

 

If you want to find the size of directories, you can use:

du -kxs directories ...

 

>first we need to check 1 to 20 directory size.  second we need to check 20 to 50 directory size

 

I'm not sure what you mean here?  Do you want to sort?  Or only list specific sizes?

Please provide some sample du(1) output and tell us how you want to format it.

rajesh73
Super Advisor

Re: how to find the size directory wise

i want to find the first 20 folders size , after that i want select specific remaining 30 folders size

folder name - a0,a1,a2,a3...............................a200.
Dennis Handly
Acclaimed Contributor

Re: how to find the size directory wise

>I want to find the first 20 directories size, after that I want select specific remaining 30 directories size

 

I'm still not clear.

You can use "du -kxs a? a??" to list the first one and two characters after "a".