Monday, August 27, 2012

Deleting many files, ubuntu server terminal vs win7 command line

We created a lot of garbage log files in our last project. ~60k files taking 2GB of space.
Ok, let's delete some of them. I don't need those xml files so I backed them up and I tried:
rm *.xml
Permission denied
Permission denied
sudo rm *.xml
Everything goes ok.
~60k files still here?!? WOOT?
I had to delete them in groups that are smaller than 10k files.
 sudo rm 21*.xml 
It worked
Let's try the same thing with another OS:
Extract backup to win7 machine. Go to console. Try:
del *.xml
Files are gone!

No comments: