Sunday, May 24, 2015

How to find out the top ten space consuming files in aix?

How to find out the top ten space consuming files in aix?


As a system admin, daily we are facing the disk utilization for the root and non root filesystems. At that time we need to find out the highly utilized files and based on the confirmation we proceed with housekeep.

If we receive /var filesystem utilizing above the threshold limit, we need to use the below command to find out the highly space consuming files. 


find /var -xdev -ls|sort +6rn|head -20


What the command will do?:

The command is really very very useful to find out top 20 high space consuming files under /var. The command check all the directory and sub-directory of /var and find out the highly space consuming files and display it. You can find out the file size on the 6th column and the files are list out in reverse order which means highly space consuming files are list out in first.

Note: please change the filesystem name on the second place of the command according to you.





If you like the above topic, please leave your reactions.