![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| disk usage | rrs | Shell Programming and Scripting | 1 | 04-13-2007 12:48 AM |
| disk usage (df vs du) | gfhgfnhhn | UNIX for Advanced & Expert Users | 8 | 09-23-2006 05:06 PM |
| Disk Usage | lewisoco | UNIX for Dummies Questions & Answers | 3 | 05-09-2006 05:44 PM |
| Finding hidden files under mounted filesystems | keelba | UNIX for Dummies Questions & Answers | 3 | 04-13-2005 11:59 AM |
| mounted filesystems | jalburger | UNIX for Dummies Questions & Answers | 3 | 09-18-2002 12:32 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Disk usage excluding additional mounted filesystems
Hi,
I am trying to do a script which will show disk usage for filesystems within a vg. This needs to exclude any additional filesystems which might be mounted over a dir within a filesystem. an example: /usr is mounted on /dev/hd2 within rootvg If /usr/another is an additional mount point for some other lv, I would like this excluded. problem I am having is that du includes all dirs exist below /usr, is there a way to restrict this to dirs within its own mount point and not additional mount points? Cheers for any info... |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
I believe you are looking for the command df.
use df mountpoint
__________________
War doesnt determine who is right, it determines who is left |
|
#3
|
|||
|
|||
|
$ man du
. . . -x, --one-file-system skip directories on different filesystems |
|
#4
|
|||
|
|||
|
Aye, I re-read the man page and found the -x yesterday afternoon, seems to do the job, just certain filesystems on a df -k show a different usage than the du -x, any reason you can think of?
Cheers for the reply..... |
|
#5
|
||||
|
||||
|
try du -kx
|
||||
| Google The UNIX and Linux Forums |