How to calculate inode quantity on server

Inodes are a data structures that represents file objects in the system. There are some hosting providers which limit inode usage. It is easy to get the five catalogs which most extensively uses up the inodes.

You can do that with an easy query using SSH command line:

for i in ls -1A; do echo “find $i | sort -u | wc -l $i”; done | sort -rn | head -5

This will outline as a result five catalogs from your current location which uses up most inodes.

You can change the last part head -5 to a different number of results to show.

, , , , , ,

About Richard Smaizys

I am a freelance PHP developer working mostly on projects using PrestaShop for ecommerce (modules, theme integration, projects from 0 etc.) and WordPress as CMS solution.
No comments yet.

Leave a Reply

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.