Wednesday 3 July 2013

How to check Inodes Usage on cPanel Server

Solution ::-
For dedicated  and VPS server, you can check the inodes of an account by  using SSH.
root@servertech [~]# quota -s  cPanel username

Also, you can check the details of  inodes Usage for a specific user or folder via ssh using the below command.
root@servertech [~]#  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 "$ctt- $dn" ; done ; printf "Total: tt$(find $(pwd) | wc -l)n"

To check the whole home partition Inodes Usage using the below command.
root@servertech [~]# find /home -maxdepth 1 -type d | while read -r dir; do printf "%s:t" "$dir"; find "$dir" | wc -l; done

No comments:

Post a Comment