Otu esi enweta enyemaka wee chọta utu aha nke iwu na Windows Powershell?
Iwu dị na Powershell nwere ike ịnwe otu ma ọ bụ ọtụtụ utu aha. An alias is the command but in a shorter and mostly abbreviated form. Some aliases are made to match bash commands.
Get-ChildItem
Iwu a depụtara ọdịnaya nke ugbu a na-arụ ọrụ ndekọ.
utu aha: ls, dir
Get-Alias
Iji chọta utu aha nke a iwu na Powershell eji Get-Alias iwu.
Ọmụmaatụ, find all the aliases start with r
get-alias r*
The Get-Alias iwu ya onwe ya nwere utu aha gal. The following will do the same thing as above…
gal r*
Get-Alias ọkọkpọhi zuru iwu nke utu aha
gal ls
Outputs: ls -> Get-ChildItem
We can also find all the aliases of the specified command with the -Definition parameter. Ọmụmaatụ, let’s find all the aliases of the Get-ChildItem iwu. We use -d which is short for -Definition
gal -d get-childitem
Outputs
dir -> Get-ChildItem gci -> Get-ChildItem ls -> Get-ChildItem
Get-Command finds the commands by command name. Get-Command has the alias gcm. So we can do this…
Nweta cmdlets malite na esi
gcm -c cmdlet get*
The n'elu bụ otu ihe ahụ dị ka….
Get-Command -CommandType Cmdlet Get*
To get help on any of the aliases or commands, just type help in front of the command. Ọmụmaatụ…
help cp
