Inodes

From Wiki
Jump to navigation Jump to search

Find inodes

find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn

or

echo "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"

== Inodes not displaying correctly==
<pre>
Try to enable quotas in WHM and then run /scripts/fixquotas

Inodes filling up in .cagefs

Navigate to PHP selector and then click on "Reset to Default" button.