Linux Aliases

Linux Aliases are essentially shortcuts within the terminal app.  You can configure them in "/home/user/.bashrc",/home/user/bash.bashrc” or “/home/user/bash_aliases“.   Any command you enter in terminal can be shortened down to as little as two letters!

Examples:

  • user:~$ nano ~/.bashrc
  • user:~$ sudo nano ~/bash.bashrc
  • user:~$ sudo nano ~/.bash_aliases

Once you have nano open you can enter all the aliases you want to make terminal quick and efficient!

Syntax for aliases in .bash_aliases:

  • alias update='sudo apt-get update'
  • alias update='sudo apt-get update && sudo apt-get upgrade -y'