mediatribe.net -- Drupal et développement web

Notice: this post was last updated Il y a 1 year 3 weeks 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.
  • Vous pouvez publier du code en utilisant les balises <code>...</code> (generic) ou bien <?php ... ?> (PHP colorié).

More information about formatting options

Image CAPTCHA
Enter the characters shown in the image.