-- Drupal and Web Development

Notice: this post was last updated 6 years 27 weeks ago so it might be outdated. Please be cautious before implementing any of suggestions herein.

Counting inodes (files, folders, symlinks)

Many hosts restrict the number of inodes you can use on a VPS or shared account.

If you have shell access, the following commands are useful to determine how many inodes you are using:

ls -R /path/to/directory | /usr/bin/wc

cd /path/to/directory
for i in $(ls);do echo -n "`pwd`/$i: ";find $i -print|wc -l 2>/dev/null;done