| 
     
       |  |  |  | 
            
              | 
             
               | 
               
                 |  | UGU: Unix Guru Universe - Unix Tip #4593- October  8, 2025
 -  Home : Help
 : Today's Tip Unix Tip #4593- October  8, 2025
 
 
FULL OF FILESYSTEM INODES 
We recently had a problem where a file system had 100% inode usage.
 Unfortunately there isn't an easy way to search for directories with
 a lot of files in them (1 file = 1 inode). And if the files are small,
 you can't rely on du to help you out.
 
 Here is a find command that will print all the directories in the
 current filesystem, with the number of files (inodes) in that directory.
 
 find . -xdev -type d -exec /bin/echo -n {} \; -exec sh -c "ls {} | wc -l" \;
 
 This tip generously supported by: rickb@cmhcsys.com
 
 
 NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.
 
 LAST 5 TIPS
 4592
 - FORGET THE CRONTAB MAN
 4591
 - POWER OF BACKQUOTES
 4590
 - PING THE HOST TABLE
 4589
 - A SHAMELESS PLUG
 4588
 - REPETITIVE TASKS WITH XARGS
 I want to 
 SUBSCRIBE
 and get a UGU Tip everyday.
 I want to 
 UNSUBSCRIBE
 and NOT get a UGU Tip everyday.
 If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
 |  |  
                 |  |  
                 |   Copyright 1994-2024 Unix Guru Universe 
 |  |  |  |  |