.bashrc functions to do repetitive tasks

Submitted by admin on Sun, 01/31/2010 - 16:01

A cool thing to do if you find yourself doing something LOTs of times:

Edit your ".bashrc" (in your home directory)
and create your personalised script as follows:

sudo chmod 774 $1 $2 $3 $4;
sudo chown www-data.www-data $1 $2 $3 $4;

Then you can execute the command "wch" with parameters to execute the commands you want. Very cool...