find the 25 largest files on your linux harddisk

find the 25 largest files on your linux harddisk

ever wondered where all your harddisk space went?

hit this: (tested on debian)

du -a / | sort -n -r | head -n 25

example output:

du: cannot access `/proc/1245/task/1245/fd/4′: No such file or directory
du: cannot access `/proc/1245/task/1245/fdinfo/4′: No such file or directory
du: cannot access `/proc/1245/fd/4′: No such file or directory
du: cannot access `/proc/1245/fdinfo/4′: No such file or directory
45746884    /
44448916    /opt
44448912    /opt/kerio
44448908    /opt/kerio/mailserver
44215540    /opt/kerio/mailserver/store
27005076    /opt/kerio/mailserver/store/logs
25928000    /opt/kerio/mailserver/store/logs/error.log
13029208    /opt/kerio/mailserver/store/backup
3409084    /opt/kerio/mailserver/store/mail
1922948    /opt/kerio/mailserver/store/backup/F20121216T000004Z.zip
1898332    /opt/kerio/mailserver/store/backup/F20121209T000000Z.zip
1862128    /opt/kerio/mailserver/store/backup/F20121230T000006Z.zip

Notes

Leave a Reply

Your email address will not be published. Required fields are marked *