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:
“Contention is inseparable from creating knowledge. It is not contention we should try to avoid, but discourses that attempt to suppress contention.”
—Joyce Appleby (b. 1929)