Title: Agile w pracy agencyjnej – z dwóch perspektyw – programisty i project managera
Venue: LoGeek Night #2, 23.01.2014
Slides: Slideshare
Monthly Archives: January 2014
Deleting large number of files without killing the server
If you have to remove large number of files, like hundreds of thousands, and don’t want to kill your production server, instead of rm -fr DIR
you can use this little fella.
while [ true ]; do ionice -c 3 find DIRECTORY_TO_BE_DELETED -type f -print | head -50000 | xargs rm -f; sleep 50; done