Wednesday, January 30, 2019

How to find directory with highest number of files/inodes


You can use below command to find directory with highest number of files/inodes in case you run up to an issue where file system inode usage is high or 100% causing OS level issues:

# find / -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n

No comments:

Post a Comment