Hi All,
I am trying to find the sizes of all the directories and files under / filesystems only, and du does not seem to be very helpful.
When I run du on /, it goes and finds the size of all the dirs and file, including those dirs that have filesystems mounted on them, which I dont want. Looking at the man page I though -x option would do that but does not seem to be doing it. On Solaris there is du -dk option which will give only the sizes of dirs and files only.
This problem is not just for / but if I have an app filesystem or DB filesystem which might have another filesystem mounted on one of its sub dirs this will come handy.
For instance
/usr is a filesystem
/usr/WebSphere/AppServer is a filesystem
In the above example I want to see the sizes of all directories and file under /usr but excluding /usr/WebSphere/AppServer which is a filesystem on its own.
I am sure there should be a way to find this, but I am unable to figure it out right now.
Any help is much appreciated
Cheers
TIA
KPKIND
I am trying to find the sizes of all the directories and files under / filesystems only, and du does not seem to be very helpful.
When I run du on /, it goes and finds the size of all the dirs and file, including those dirs that have filesystems mounted on them, which I dont want. Looking at the man page I though -x option would do that but does not seem to be doing it. On Solaris there is du -dk option which will give only the sizes of dirs and files only.
This problem is not just for / but if I have an app filesystem or DB filesystem which might have another filesystem mounted on one of its sub dirs this will come handy.
For instance
/usr is a filesystem
/usr/WebSphere/AppServer is a filesystem
In the above example I want to see the sizes of all directories and file under /usr but excluding /usr/WebSphere/AppServer which is a filesystem on its own.
I am sure there should be a way to find this, but I am unable to figure it out right now.
Any help is much appreciated
Cheers
TIA
KPKIND