IAMEM Hosting

Disk Space Management on Redhat/CentOS Servers

Home > Blog > cPanel > Disk Space Management on Redhat/CentOS Servers
03Aug, 2021
0

Disk Space Management on Redhat/CentOS Servers

 

Finding the directories with large number of inodes:

 

clear;echo “Detailed Inode usage: $(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”

 

Note: Run the above command in root (/) partition

 

 

Find all the files more than 100MB:

 

find / -type f -size +100M -exec ls -lh {} \; | awk ‘{ print $9 “|| Size : ” $5 }’

.

Leave a Reply

ten − 5 =

Copyright © 2019 | iamemhost.com . All rights reserved.