Tech Blog :: Bash tip: find the extensions of large files
Bash tip: find the extensions of large files
I was exploring a site today with a webroot that filled more than 15 GBs. To see the full list of big files (>1 MB), I did:
find . -size +1024k
And to find the file extensions of the biggest files, I did:
find . -size +1024k | while read BIGFILE; do echo "$BIGFILE" | awk '{print tolower($0)}' | awk -F . '{print $NF}'; done | sort | uniq
Google: TheBuckSt0p
Facebook: BenBuckman
LinkedIn
Github: newleafdigital
@thebuckst0p
Delicious: thebuckst0p
Drupal.org: thebuckst0p
Post new comment
Don't bother putting in spam links. They'll be set to
rel=nofollowand will be removed and reported as spam shortly after submitting.