Hello
How to check the Inode usage of my current directory?
How to check the Inode usage of my current directory?
Moderator: Staff
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: How to check the Inode usage of my current directory?
Hello Jackk,
Please use the below command to find the inode usage of your current working directory
echo "Detailed Inodes 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"
Please use the below command to find the inode usage of your current working directory
echo "Detailed Inodes 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"
Re: How to check the Inode usage of my current directory?
Hello Tommy,
I want to find the inode usage of my entire hosting account on how to check that?
I want to find the inode usage of my entire hosting account on how to check that?
Re: How to check the Inode usage of my current directory?
Hello Jackk,
You can use the below command to find the inode usage of your entire account
* Replace "user" with your username
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"Detailed Inode usage for: /home/user
You can use the below command to find the inode usage of your entire account
* Replace "user" with your username
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"Detailed Inode usage for: /home/user