18.14 Find Large Files

Find all files from the current directory that are larger than 100M:

$ find . -size +100M -exec ls -sh {} \;
470M ./github/fred/abcd/temp/multi/multi_test.jsonl
125M ./github/mymodels/primer/primer_1.2.1.mon
418M ./projects/r/data.csv
144M ./projects/data/cans.csv
337M ./projects/training/sample.csv
108M ./projects/home/engaged_s12.mp4

Find all files from the current directory that are larger than 50M and smaller than 100M:

$ find . -size +50M -size -100M -exec ls -sh {} \;
61M ./gitlab/mymodels/sample/goto.model
84M ./projects/r/train.csv
56M ./projects/home/engaged_s11.mp4
60M ./bitbucket/rattle/etc/credit.Rdata


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0