Some time you many need to find all files greater than equal to specific size like 1MB 10 MB or 1GB, so you can use following command to get the files have length more than equal to you have specified:
find / -type f -size <GIVE SIZE HERE IN KB> -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
Example:
find / -type f -size +1048576k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
This will find files greater than size 1GB. so you can experiment with the size as you need.
find / -type f -size <GIVE SIZE HERE IN KB> -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
Example:
find / -type f -size +1048576k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
This will find files greater than size 1GB. so you can experiment with the size as you need.
No comments:
Post a Comment
Thank you for Commenting Will reply soon ......