Operating System - HP-UX
1833824 Members
2424 Online
110063 Solutions
New Discussion

Re: Discover the size of a file system

 
SOLVED
Go to solution
Guga
Occasional Advisor

Discover the size of a file system

Hi I have a N4000 with HpUX 11.11 and there is a lvol called lvusr1 mounted on /usr1 and under this file system there are many subdirectories. My question is...how I discovery how many a subdirectory is allocing.

Sample:

lvol - /dev/vg01/lvusr1 mounted on /usr1
Structure of /usr1
/usr1/fatura
/usr1/finc

/dev/vg01/lvusr1 size is 20Gb
How size of /usr1/fatura?????
4 REPLIES 4
Shrikant Lavhate
Esteemed Contributor
Solution

Re: Discover the size of a file system

Hi Guga,
You can use disk usage command to find size of directories.
eg.
#du /usr1/finc
Will it remain a personal, if I broadcast it here!
Anshumali
Esteemed Contributor

Re: Discover the size of a file system

Try...
du -xk /usr1
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Geoff Wild
Honored Contributor

Re: Discover the size of a file system

du -sk /usr1/* |sort -rn

Will sort all under /usr1


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Guga
Occasional Advisor

Re: Discover the size of a file system

All the answers above are right..

Thank you