mai 262009
 

Kord tuli kustutada ~30000 faili mailqueuest, tavaline rm * jäi hätta ja ütles: “/usr/bin/rm: arg list too long”

Suuremast ikaldusest päästis

Solarises:
find /var/spool/mqueue -name blah* -exec /usr/bin/rm {} ;

linuxis peaks avitama:
find /koht/kus/paljufaile -name 'blabla*' -exec /bin/rm {} \;

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(vajalik)

(vajalik)

This site uses Akismet to reduce spam. Learn how your comment data is processed.