How to check which user account folder has maximum inodes?

How to check which user account folder has maximum inodes?

Sometimes, while taking backup of any user account on your server took very long time due to number of files present in his account. And most of the times they are un-necessary session or cache files. So to avoid the wastage of time and space, you can remove the files from server or exclude the path in your backup settings.

To know which folder is taking the maximum inodes or files you can use the "DU" utility provided by linux.
You can run the below command:
# du --inodes -xS /home/hoststud/public_html | sort -rh | head
This will result the top 10 folder with highest inodes present in user account.
Author
bhawanisingh
Views
2,762
First release
Last update
Rating
0.00 star(s) 0 ratings
Top