Operating System - HP-UX
1846730 Members
3470 Online
110256 Solutions
New Discussion

Search for number of files reside in one mount point.

 
SOLVED
Go to solution
YLTan
Frequent Advisor

Search for number of files reside in one mount point.


Does anyone have a suggestion to discover the number of files are in one mount point?
tyl
4 REPLIES 4
curt larson_1
Honored Contributor

Re: Search for number of files reside in one mount point.

of course this all depends on what you mean by a file (everything in unix is a file, ie regular files, device files, sockets, etc)

find /mountpoint -xdev | wc -l

will give you a count of all the files
Michael Tully
Honored Contributor

Re: Search for number of files reside in one mount point.

You could also use the inode count.

# bdf -i /mountpoint
Anyone for a Mutiny ?
YLTan
Frequent Advisor

Re: Search for number of files reside in one mount point.


I am looking for number of regular files in a mount point. bdf -i gives it in percentage, I believe it also includes everything e.g socket, etc...
tyl
curt larson_1
Honored Contributor
Solution

Re: Search for number of files reside in one mount point.

find /mountpoint -xdev -type f | wc -l

will give you the number of regular files