PDA

View Full Version : Get rid of all those anoying .ini ,and .db Windows left in your files in 3 steps



swoll1980
April 30th, 2009, 10:29 PM
Choose the directory you want to clean out.

cd /path_to _folder_you_want_to_clean


find . -name *.ini -type f -print0 | xargs -0 /bin/rm
finds and deletes all the .ini

find . -name *.db -type f -print0 | xargs -0 /bin/rm
finds and deletes all the .db

Dark Aspect
April 30th, 2009, 10:33 PM
Cool, XP via Virtualbox dumps crap in my home folder when I mount it as a network drive. This works well to get ride of these files.

swoll1980
April 30th, 2009, 10:37 PM
Cool, XP via Virtualbox dumps crap in my home folder when I mount it as a network drive. This works well to get ride of these files.

You can also use

find . -name *.jpg -type f -print0 | xargs -0 /bin/rm

To pull the album art out of your music folders. Make sure you change to you music directory first.

cd /path_to_your_music_folder
Make sure your in the right folder

ls
Then go ahead and execute the command
WARNING!!! If your in the wrong directory you could delete all your photos

swoll1980
April 30th, 2009, 11:28 PM
I was was just thinking; If you have wine installed I wouldn't do it from your ~/ ,but rather pick specific folders you want to rid of .ini because the wine programs might need the .ini I'm not sure

ajgreeny
April 30th, 2009, 11:37 PM
And beware that f-spot keeps the photo info in a .db file in ~/.gnome2/f-spot/photos.db. Get rid of that and you will need to re-import all your photos again, along with all their tags.

Namtabmai
April 30th, 2009, 11:41 PM
f-spot

And Thunderbird, Firefox, Exaile.... that first command probably isn't the safest thing to run blindly.

swoll1980
April 30th, 2009, 11:52 PM
Yeah we should defiantly pick the directory we want to clean out, and not use ~/ I had know Idea Linux used all these Windowss files. Now I just have to ask why. The command does save a lot of time though. I cleaned out 100s and 100s of junk files in a few seconds.