create an alias permanently add the alias to your .bashrc file
open Terminal and type:
sudo gksu gedit ~/.bashrc
And then add your alias at the bottom.
example 1
alias xr='sudo /opt/lampp/lampp restart'
to restart lamp server
example 2
alias x='sudo /opt/lampp/manager-linux-x64.run'
to start xampp server
example 3
alias chm='sudo gksu gedit ~/.bash_history'
clear tirminal history manual
example 4
alias ca='sudo cat /dev/null > ~/.bash_history && history -c && exit'
clear total tirminal history automaticly
example 5
alias cdm='cd /home/temp/Music'
example 6
alias copym='sudo cp *.deb /home/temp/Music'
example7
alias si='sudo -i'
and save exit
Now execute . ~/.bashrc in your terminal (there should be a gap(spase) between the . and ~/.bashrc
now type in terminal your new alias commond
open Terminal and type:
sudo gksu gedit ~/.bashrc
And then add your alias at the bottom.
example 1
alias xr='sudo /opt/lampp/lampp restart'
to restart lamp server
example 2
alias x='sudo /opt/lampp/manager-linux-x64.run'
to start xampp server
example 3
alias chm='sudo gksu gedit ~/.bash_history'
clear tirminal history manual
example 4
alias ca='sudo cat /dev/null > ~/.bash_history && history -c && exit'
clear total tirminal history automaticly
example 5
alias cdm='cd /home/temp/Music'
example 6
alias copym='sudo cp *.deb /home/temp/Music'
example7
alias si='sudo -i'
and save exit
Now execute . ~/.bashrc in your terminal (there should be a gap(spase) between the . and ~/.bashrc
now type in terminal your new alias commond
0 comments:
Post a Comment