Archive for the ‘Linux’ Category

Some days ago I saw some colleagues using more than >2 computers with one keyboard and one mouse, dragging the mouse across multiple screens with different operating systems and using the clipboard accross them. Wow! This is done with a tool named Synergy. Here is my setup with Windows XP and Mac OSX: I did [...]

grep -R “<rec_lang>de<\/rec_lang>” /var/repository/000/023/* Show all files that contain a the string <rec_lang>de</rec_lang> find . -name ‘*.php’ | xargs perl -pi -e ‘s/this->type/this->beanType/g’ Find the string ‘this->type’ and replace it with ‘this->beanType’ in all *.php-files in and under the current working directory. Thanks to Darren and Reto!

Here is a list of interesting things you can do on a linux command line. I will continue this list as I come across new ones: find /var/files/000 -name *.xml | xargs rm -f Delete all XML-files in all subdirectories of /var/files/000 ls -laR | wc -l Count all files under the current directory. Be [...]

On my network I have a Buffalo Terastation as network-share for backups. Today I figured out how to mount it on another Linux-box (Debian Etch) so I could do file operations directly on my backup. The following worked out for me: Created dir /mnt/terastation2 Added the following line to /etc/fstab //TERASTATION2/SHARE /mnt/terastation2 smbfs username=marco,password=,uid=marco,gid=businex,dmask=707,fmask606 And [...]