Posts Tagged ‘Terminal’

Using find command to remove windows files

November 17th, 2009

Just thought I’d post this as its a useful little thing to get some space back.

If your like me and use a Apple Mac and connect to a lot with windows users, you’ll find Windows System files on your machine from time to time. They are no use on a mac and really just take up space on your hard drive.

Not really bother about them, if I came across one and felt like deleting it I would but in general I would just leave it.

Today however, I ran a little command line to remove all of them from my hard drive.

I didn’t think about the space it would free up, just that I wouldn’t have any of them left to bother me.

Once the command was finished, I noticed that it cleared up just under 400MB of space. This was a very nice surprise.

So if you want to give your mac a little clean, open Terminal and type in:

find ./ -name Thumbs.db -exec rm -fr {} \;

Just remember to be careful of executing command line functions. If your not 100% sure about this maybe ask someone to double check for you.

Once these files are removed, you’ll never get them back unless you wanna fork out a bunch of cash.

Well enjoy the rest of your day.

A