thanks but i am not really sure thats what i wanted
I tested it on a vm eg:
i created this first
Code:
/dev/mapper/vg00-lv_test
5.0G 139M 4.6G 3% /test
i made a directory /test/test2 and made a 2G file under it
dd if=/dev/zero of=file2G.tmp bs=1M count=2048
after that i mounted another fs on /test/test2, so now its looks like this
Code:
/dev/mapper/vg00-lv_test
5.0G 2.2G 2.6G 46% /test
/dev/mapper/vg00-lv_test2
5.0G 139M 4.6G 3% /test/test2
and using this exclude option just seems to ignore the specified fs to output, but doesnt show that hidden 2G file is somewhere
Code:
[root@localhost test2]# du -hs /test/*
16K /test/lost+found
20K /test/test2
[root@localhost test2]# du -hs --exclude /test/test2 /test/*
16K /test/lost+found
maybe my first post wasnt clear enough, hope this example helps, and this was just a test where i know where is the "hidden file"
but where i would need to do it, there are more mounted fs as there we speak about "/", so it would not be enough to find there is something but i would like to get if its under /home or /var or etc