I know how to add aliases to bashrc and run it.
For example:
$ sudo nano ~/.bashrc
and add line;
alias startmyservicescommand='/home/startmyservice.sh'
but, now i want to add "variables" to my command.
for example my command will be :
iptables -A INPUT -s IP-ADDRESS -j DROP
and i want use command as:
ip_ban IP-ADDRESS (ip_ban is my self alias and IP-ADDRESS is a variable)
How can i add this command to bashrc?
Thank you.