Find files larger than * in linux

I found this neat cmd to use when trying to find files larger than certain sizes e.g

find / -type f -size +200M

If you want files less than that size you can do

find / -type f -size -200M

For other ways to use the cmd check out this post where i got the info from.

This other cmd finds files larger than 10M and calculates their sizes too.

find / -size +10240000c -exec du -h {} \;

Remember in all cases to change “/” to the location you want to search for the files e.g “/home/username”.

Play music with Gtkpod and xmms

By default Gtkpod uses xmms to try and play songs from your Ipod, a few linux distributions come with xmms. If yours came installed with it first remove it as it does not play music from your Ipod. Then go ahead and install
xmms-mp3

You should now be able to play music from your Ipod with Gtkpod. Although xmms is not the latest player I like it because it’s small and lightweight.

Remove spaces from filenames

Removing spaces from filelemanes can be archived using various methods. The command below uses sed to do this, before running it make sure you are in the folder containing the files whose names you want to change.

for file in *; do mv "$file" `echo $file | sed -e 's/  */_/g' -e 's/_-_/-/g'`; done

Which is easier to install win or linux

I was just reading this article and I just remembered going through the same last week as I cleaned out a windoz box for a friend. Rebooting like 20 times after an update of this or that, and that’s on new hardware. I could not even compare the experience to when I do installs on my Linux test box, most installs are done in less than thirty minutes and you are up and running. Installing Linux is such a breeze I don’t even have to think that much about it, while for windoz i have to plan for it and make sure I have enough time to just sit there and watch precious time being wasted.

I had to install the base OS and each service pack separately and restart some more, now on linux you might have to reboot only if there is an upgrade to the kernel, but generally updates don’t require a reboot.