Quantcast
Viewing latest article 2
Browse Latest Browse All 4

Answer by techraf for find and remove files bigger than a specific size and type

If you want to exclude files by name, you can use this syntax:

find . -type f ! -name '*.mp3' ! -name '*.mp4' -size +1M -delete

or if your find does not support delete:

find . -type f ! -name '*.mp3' ! -name '*.mp4' -size +1M -exec rm {} \;

Viewing latest article 2
Browse Latest Browse All 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>