Creating Aliases
Aliases can be created by supplying name/value pairs as arguments for the alias command. An example of the Bash shell syntax is:
alias copy="cp"The corresponding syntax in the C shell or tcsh shell is:
alias copy "cp"This alias means that when the command copy is read in the shell, it will be replaced with cp and that command will be executed instead.
In the 4DOS/4NT shell the following syntax is used to define cp as an alias for the 4DOS copy command:
To create a new alias in Windows PowerShell, the new verb can be used with the alias cmdlet:
This creates a new alias called ci that will be replaced with the copy-item cmdlet when executed.
Read more about this topic: Alias (command)
Famous quotes containing the word creating:
“The peace loving nations must make a concerted effort in opposition to those violations of treaties and those ignorings of humane instincts which today are creating a state of international anarchy and instability from which there is no escape through mere isolation or neutrality.... When an epidemic of physical disease starts to spread, the community approves and joins in a quarantine of the patients in order to protect the health of the community against the spread of the disease.”
—Franklin D. Roosevelt (18821945)