Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-13-2012
Registered User
 
Join Date: Sep 2010
Posts: 99
Thanks: 69
Thanked 0 Times in 0 Posts
Total number of files in a FS

Hello people,
On HP-UX B.11.11 U 9000/800
How can I have in aprox. the total number of files in a specific FS?

Is the number of used inodes a rough estimation of my total number of files?



Code:
Server1 /Data:df -i .
/Data (/dev/vg_Data/lvol1 ) : 18292960 total i-nodes
15800945 free i-nodes
2492015 used i-nodes
13 % i-nodes used


If not please suggest alternatives.

Thank you in advance.
Sponsored Links
    #2  
Old 07-13-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,633
Thanks: 118
Thanked 256 Times in 245 Posts
By files you mean you want only regular files?

Code:
ant:/home $ df -i .                    
/home                  (/dev/vg00/lvol5       ) :    34112 total i-nodes
                                                     23857 free i-nodes
                                                     10255 used i-nodes
                                                        30 % i-nodes used
ant:/home $ du -a|wc -l                
10253
ant:/home $ find . -type f -print|wc -l
9358

Last case is only a count of regular files..
The Following User Says Thank You to vbe For This Useful Post:
drbiloukos (07-16-2012)
Sponsored Links
    #3  
Old 07-13-2012
Registered User
 
Join Date: Sep 2010
Posts: 99
Thanks: 69
Thanked 0 Times in 0 Posts
Regular files I need.
    #4  
Old 07-13-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,633
Thanks: 118
Thanked 256 Times in 245 Posts
So my find command is what you need... look at my comparison above...
The Following User Says Thank You to vbe For This Useful Post:
drbiloukos (07-16-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Write the total number of rows in multiple files into another file malaya kumar UNIX for Dummies Questions & Answers 4 03-30-2012 04:46 AM
Command for total number of files (and size) across subdirectories? Beun UNIX for Dummies Questions & Answers 9 09-01-2011 11:17 AM
perl script on how to count the total number of lines of all the files under a directory adityam Shell Programming and Scripting 5 07-07-2010 04:36 AM
total number of files which have "aaa" in files whose names are File*_bbb* sudheshnaiyer UNIX for Dummies Questions & Answers 1 08-16-2007 02:34 PM
grep running total/ final total across multiple files MrAd UNIX for Dummies Questions & Answers 5 05-08-2007 01:03 PM



All times are GMT -4. The time now is 12:27 PM.