mediatribe.net -- Drupal and Web Development

Notice: this post was last updated 1 year 3 weeks ago so it might be outdated. Please be cautious before implementing any of suggestions herein.

Reply to comment

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

Reply

  • 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

Image CAPTCHA
Enter the characters shown in the image.