How To Make Alias ​​from Terminal In Ubuntu

In this tutorial we will see how to create aliases in Ubuntu 12.04/11.10. Alias ​​will help you set a brief word to terminal commands of your choice.

The first time we create a hidden file called bash_aliases in your home directory with type this command:

# > ~/.bash_aliases; gedit ~/.bash_aliases

Here are some examples of aliases that can be added to the file bash_aliases ~ /:
  • alias bld=blender
  • alias inks=inkscape 
  • alias upgrade=’sudo apt-get upgrade’ 
  • alias inst=’sudo apt-get install’ 
  • alias autorm=’sudo apt-get autoremove’



To test your alias, close the terminal and run it again, then test by running a command alias that you created earlier.



Other Articles You May Find:




No comments:

Post a Comment