Find big files on linux

A quick post to remember a useful snippet to find big files inside a linux machine

Command

this command shows the full path of the File <colon> Date <colon> Size

find / -type f -size +1G -exec ls -lh {} ; | awk '{ print $9 " : " $6"-"$7 ": " $5 }'

Output

Output shows files bigger than 1gb

[root@RSENDBE01 data]# find / -type f -size +1G -exec ls -lh {} ; | awk '{ print $9 ": " $5 }'
/var/lib/mongo/ECOM-LOGS.9: 2.0G
/var/lib/mongo/ECOM-LOGS.6: 2.0G
/var/lib/mongo/ECOM-LOGS.8: 2.0G
...
...

Leave a Reply

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

*