Find all files with same extension: fpx
find . -type f -name "*.fpx"
Find all files except ones with extensions: webp, jpg, jpeg:
find -type f ! -name "*.webp" ! -name "*.jpg" ! -name "*.jpeg"
Find all files larger than value:
find -type f -size +10M
for files smaller than value, just swith from + to –
Find and delete all files with a specific extension:
find . -name "*.webp" -type f
This is a “dry run” it will only list files and will NOT delete them, then you add: -delete switch to delete them:
find . -name "*.webp" -type f -delete
