Quantcast
Channel: find and remove files bigger than a specific size and type - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 4

find and remove files bigger than a specific size and type

$
0
0

I want to clean up my server from large log files and backups.

I came up with this:

find ./ -size +1M | xargs rm

But I do not want to include mp3 and mp4. I just want to do this for log and archive files (zip, tar, etc.)

How will the command look like?


Viewing all articles
Browse latest Browse all 4

Trending Articles



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