Just type alias kt="killall gnome-terminal" in command line (I assume you're bash user).
To make this changes permanent, you can put this line to your .bashrc, for example. Execute echo 'alias kt="killall gnome-terminal"' >> ~/.bashrc (don't forget to re-apply changes using . ~/.bashrc)
Use simple alias command to see the list of aliases in action.
Creating an alias
alias kt='killall gnome-panel'
gedit ~/.bashrc
. ~/.bashrc
orsource .bashrc
kt
in terminal it will perform the action ofkillall gnome-panel
alias
in terminal.Few examples:
.bashrc
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade'
alias upd='sudo apt-get update && sudo apt-get upgrade'
Note:
Just type
alias kt="killall gnome-terminal"
in command line (I assume you're bash user).To make this changes permanent, you can put this line to your
.bashrc
, for example. Executeecho 'alias kt="killall gnome-terminal"' >> ~/.bashrc
(don't forget to re-apply changes using. ~/.bashrc
)Use simple
alias
command to see the list of aliases in action.Cheers
update: BTW, you may find this useful as well: Problem with creating permanent alias