Limpar o lixo

with one comment

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

Written by Pedro Cardoso

February 13th, 2008 at 1:33 am

Posted in Apple

Tagged with , , ,

One Response to 'Limpar o lixo'

Subscribe to comments with RSS or TrackBack to 'Limpar o lixo'.

  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.
    :-)

Leave a Reply