Alias command in Linux














































Alias command in Linux



The alias command instructs the shell to replace one string with another string while executing the commands. 

When a user often has to use a single big command multiple times, in those cases, the user can create something called an alias for that command. An alias is like a shortcut command which will have the same functionality as if the user is writing the whole command.

Syntax:



Creating an alias :

Syntax:




Creating an Unalias: Removing an existing alias is known as unaliasing.

Syntax:




Options for Alias command:

-p option: This option prints all the defined aliases in reusable format.

Syntax:




%u2013help option: It displays help Information.

Syntax:




Comments