Find all folders with same name in a directory tree and execute commands on them

Sunday, October 11th, 2009

In a Linux CLI environment you can use the "find" command to search for files or folder. In this tutorial I will explain how to find folders having the same name in a directory tree and execute commands on them. Since the best way to learn is by example, let's consider ...

Shell script to extract the exchange rates from BNR (Romania)

Wednesday, August 13th, 2008

Here is a simple script to get the exchange rates from www.bnro.ro/nbrfxrates.xml   #!/bin/bash # clear the screen clear # display an info message echo "+------------------------------+" echo "|        BNR exchange   |" echo "+------------------------------+" # check for parameters if [ $# -ne 1 ] then echo "Usage: $0 eur  ...

How to activate sounds in Pidgin

Friday, January 18th, 2008

In case the sound events are not working in Pidgin you can use this solution: From the main menu select Tools -> Preferences (or just press the keyboard shortcut CTRL+p). From Preferences window select the Sounds tab. At the Sound method section, for Method select the Command option. In the Sound command field type: aplay ...

Understanding file permissions and ownership on Linux

Wednesday, December 12th, 2007

The files on a Linux system can have reading permissions, writing permissions, executing (running) permissions or no permissions for the user that owns that files, groups of users or the rest - users who does not own that files and they are not members of any group. The usual file types ...