Other than Set-Alias
being able to change extant aliases, what's the difference between these commands?
Why would someone use New-Alias
over Set-Alias
?
One (the only one?) advantage in using new-alias
is that you will get an error when you override an existing alias. Otherwise they are synonyms when it comes to alias creation, to quote from help -full new-alias
:
To create a new alias, use Set-Alias or New-Alias. To change an alias, use Set-Alias.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.