=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE DICA UNIX
Dica Unix 2697 - 22 de maio de 2007 http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ACHANDO ARQUIVOS CORE
Para achar e remover arquivos de core, condicionalmente :
find ~ -name core -exec file {} ; -exec rm -i {} ;
O comando “file” mostra qual tipo de executável este arquivo de core é e a opção -i do comando rm lhe permite escolher se quer deletar o arquivo ou não.
EXEMPLO
find ~ -name core -exec file {} ; -exec rm -i {} ;
/my/home/core: ELF 32-bit LSB core file of ‘netscape-commun’ (signal 3), Intel 8 rm: remove `/my/home/core'? y
Esta dica foi generosamente remetida por : sparkman@webmd.net
Para assinar: http://www.ugu.com/sui/ugu/show?tip.subscribe Para sair: http://www.ugu.com/sui/ugu/show?tip.unsubscribe Para enviar uma dica: http://www.ugu.com/sui/ugu/show?tip.today
=============================================== DECLARAÇÃO: TODAS AS DICAS DE UNIX SÃO PROPIEDADE DA UNIX GURU UNIVERSE E NÃO SÃO PARA SER VENDIDAS, IMPRESSAS OU USADAS SEM O CONSENTIMENTO POR ESCRITO DA UNIX GURU UNIVERSE. TODAS AS DICAS SÃO “USADAS POR SEU PROPIO RISCO”. UGU ADVERTE PARA TESTAR TODAS AS DICAS EM UM AMBIENTE QUE NÃO ESTEJA EM PRODUÇÃO.
Unix Guru Universe - www.ugu.com - tips@ugu.com - Copyright 1994-2007 =========================================================================