mediatribe.net -- Drupal and Web Development

Notice: this post was last updated 6 years 24 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

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.