Saturday, May 30, 2009

Removing files in Linux

The best thing about Linux is the console, one of the many useful uses is the way you can handle (find, move, create, delete) files, a quick example of this is removing all hidden .svn directories:
rm -rf `find . -type d -name .svn`

Make sure that you use "`" and not "'", you can also try removing all java files in a
folder using this one:

rm -rf `find . -type f -name *.java`

Simple and painles ;)

Thursday, May 7, 2009

How to turn Linux bell off

This is quite simple but yet pretty annoying, if you tend to work till late or early in the morning and you don't want to wake up people, is useful to turn off the default Linux bell sound, do this with the following command:

lfbarragan@theanswer:~$ xset b off

In case you want this to be the default behavior every time you turn on your laptop add this line to your /etc/profile file, check the xset documentation in case you want to customize more things.