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'

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s