Alias

  • 1 Min. Read.

An alias is a simple shortcut to commands. Aliases allow you to execute a command (or multiple commands) by entering a single word.

Show a list of all aliases

To show a list of all active aliases, use the following command:

Create an alias

Creating an alias can be done through the following syntax:

For example, we can create an alias for the command clear using the following command:

Now, by entering c as a command, behind the scenes clear gets executed and the screen gets cleared.

Was this article helpful?

Comments 0
There are no comments at the moment.
A concept by Wonderlus