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:
Name | Views | Likes |
---|---|---|
Usermod command in Linux | 4553 | 1 |
SSH Command In Linux | 791 | 7 |
Introduction to Named Pipes | 1069 | 3 |
Linux KILL Command | 2794 | 5 |
Soft Link and Hard Link In Linux | 421 | 2 |
Vi Editor in Linux | 596 | 6 |
FDisk Command in Linux | 544 | 5 |
How to view the History in Linux | 450 | 2 |
Process Manipulation in Linux | 1623 | 4 |
Export command in Linux | 413 | 1 |
ID command in Linux | 413 | 1 |
Netstat Command in Linux | 628 | 3 |
Chmod Command in Linux | 437 | 1 |
Compressing Files in Linux | 355 | 1 |
Crontab in Linux | 477 | 1 |
File Manipulation in Linux | 617 | 5 |
Curl Command in Linux | 506 | 1 |
Env Command in Linux | 398 | 5 |
LSOF Command in Linux | 407 | 1 |
User Manual in Linux | 433 | 1 |
Whereis command in Linux | 440 | 1 |
4 Lesser Known Commands in Linux | 470 | 6 |
Shell Scripting in Linux | 633 | 4 |
Alias command in Linux | 374 | 1 |
How to Kill a Process using Command Line | 471 | 3 |
Comments