Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, the quota of inodes on my server (via a host provider) is already used at more than 80%, and increasing regularly. How to trace inodes usage ? If inodes ...
  1. #1
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    130

    How to trace inodes usage ?

    Hello,

    the quota of inodes on my server (via a host provider) is already used at more than 80%, and increasing regularly.

    How to trace inodes usage ?
    If inodes corresponds to files, how can print number of files per directory to check any abnormal high figures ?

    Bye,
    Bruno

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Posts
    37
    You can use these commands:
    Code:
    echo "Detailed Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"

  3. #3
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    130
    Thanks Ioanna83.
    Cool command. It helped me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •