Inodes

From Wiki
Revision as of 16:21, 21 February 2023 by Qljca (talk | contribs) (Created page with "==Find inodes== <pre> 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 </pre> ==Inodes filling up in .cagefs== <pre> Navigate to PHP selector a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.