Tips & Tricks

Note to myself.
I found that my /var/amavis/tmp has thousends of files.

du -sg tmp/
26 tmp/

Actually 26Gb of crap. Now, how to delete all files excluding these with current date and one day before?

Here is one line magic spell:

find /var/amavis/tmp -type f -mtime +1 -exec rm -f {} \;


du -sm tmp/
9 tmp/

Bingo! ;)
Thx to aniou

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Related Posts with Thumbnails

Podobne posty

Dodaj komentarz

Twój adres email nie zostanie opublikowany.

Time limit is exhausted. Please reload the CAPTCHA.

CommentLuv badge