Yadda za a samu taimako da kuma samun sunayen laƙabi na dokokin a Windows Powershell?
Umarni a cikin Powershell na iya samun laƙabi ɗaya ko da yawa. An alias is the command but in a shorter and mostly abbreviated form. Some aliases are made to match bash commands.
Get-ChildItem
Wannan umurnin ya bada jerin sunayen da abun ciki na yanzu aiki directory.
wanda aka ce masa: ls, dir
Get-Alias
Don samun laƙabin na umarni a Powershell amfani da Get-Alias umurnin.
Misali, find all the aliases start with r
get-alias r*
A Get-Alias umurnin da kanta yana da wani wanda aka ce masa gal. The following will do the same thing as above…
gal r*
Get-Alias kuma samun cikakken umurnin wani wanda aka ce masa
gal ls
Outputs: ls -> Get-ChildItem
We can also find all the aliases of the specified command with the -Definition parameter. Misali, let’s find all the aliases of the Get-ChildItem umurnin. 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…
Samun cmdlets fara da samu
gcm -c cmdlet get*
The sama ne guda a matsayin….
Get-Command -CommandType Cmdlet Get*
To get help on any of the aliases or commands, just type help in front of the command. Misali…
help cp
