hi,
you can use
find /bin ¦ wc -l
or in a script do
Count()
{
total=`find $1 ¦ wc -l`
echo "$1 = $total"
}
Count /
Count /bin
Count /var
Count /var/tmp
Take care to this
in / you count all files on disks (and remote if mounted)
and in
/var you count also the file contained in /var/tmp
Sometime may be useful, I don't know if this is your case,
count file inside the filesystem without "traverse" it
also if the mount point of the 2nd fs is under the 1st
ex you have fs
/
/var
/home
/home/users
/usr
/usr/local
...
using
find /usr -xdev
find /home -xdev
you don't see files under /usr/local and /home/users filesystem
bye