luminescente

Limpar o lixo

Apple — Pedro Cardoso on February 13, 2008 at 1:33 am

Para limpar o lixo que o OSX gera:

find -name *._* -exec rm ‘{}’ ‘;’
find -name .DS_Store -exec rm ‘{}’ ‘;’

Fica aqui a nota para a próxima vez que for necessário

1 Comment »

  1. Uma opção interessante seria usar o find com -delete. Do ‘man find’:

    -delete
    Delete files; true if removal succeeded. If the removal
    failed, an error message is issued. Use of this action
    automatically turns on the ’-depth’ option.

    :-)

    Comment by Felipe Augusto van de Wiel — February 13, 2008 @ 3:15 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. | luminescente