How to check the Inode usage of my current directory?

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..

Moderator: Staff

Post Reply
Jackk
Posts: 0
Joined: Fri Apr 13, 2018 7:18 pm

How to check the Inode usage of my current directory?

Post by Jackk »

Hello

How to check the Inode usage of my current directory?


Tommy
Posts: 0
Joined: Wed Sep 09, 2020 12:10 pm

Re: How to check the Inode usage of my current directory?

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


Jackk
Posts: 0
Joined: Fri Apr 13, 2018 7:18 pm

Re: How to check the Inode usage of my current directory?

Post by Jackk »

Hello Tommy,

I want to find the inode usage of my entire hosting account on how to check that?


Tommy
Posts: 0
Joined: Wed Sep 09, 2020 12:10 pm

Re: How to check the Inode usage of my current directory?

Post 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


If you are looking for assistance in server management, please get in touch with our support.
Post Reply