Community journal

The latest from the MySQL community

Ideas, releases, practical guides, and perspectives from the people building with MySQL.

Follow the feed
Showing entries 1 to 1 of 1 « Previous | Next »
Displaying posts with tag: LPIC1 (reset)
[Linux] - Remover arquivos depois de X dias

Remover arquivo depois de 30 dias: # find /path_to_file/ * -mtime +30 -exec rm {} \; 

Remover arquivo depois de 7 dias: # find /path_to_file/ * -mtime +7 -exec rm {} \; 

Remover arquivo especifico depois de 7 dias:

# find *.xml -mtime +7 -exec rm {} \;

Remover milhões de arquivos no Linux:# perl -e 'for(<*>){((stat)[9]<(unlink))}' Segunda Opção:# find . -maxdepth 1 -type f -delete