How to Create an Alias in Linux

An alias allows you to create custom shortcuts for long or complicated commands.

Creating an Alias

  1. Open your terminal.
  2. To make a temporary alias, type alias update='sudo apt update && sudo apt upgrade'.
  3. To make it permanent, add the alias command to your ~/.bashrc file.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.

Receive our best articles and tips delivered straight to your inbox.