.bashrc functions to do repetitive tasks

© 2022 www.JaxBeachTech.com  |  Ph: 9o4.834.o433  |   email  |  [50.41]

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:

wch()
{
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...