Page 1 of 1
How to check the Inode usage of my current directory?
Posted: Sun Sep 20, 2020 11:17 am
by Jackk
Hello
How to check the Inode usage of my current directory?
Re: How to check the Inode usage of my current directory?
Posted: Sun Sep 20, 2020 12:01 pm
by Tommy
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"
Re: How to check the Inode usage of my current directory?
Posted: Sun Sep 20, 2020 1:11 pm
by Jackk
Hello Tommy,
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?
Posted: Sun Sep 20, 2020 1:58 pm
by Tommy
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