Bi o lati gba iranlọwọ ki o si ri aliases ti ofin ni Windows Powershell?
Aṣẹ ni Powershell le ni ọkan tabi pupọ inagijẹ. An alias is the command but in a shorter and mostly abbreviated form. Some aliases are made to match bash commands.
Get-ChildItem
Yi aṣẹ awọn akojọ ti awọn akoonu ti awọn ti isiyi ṣiṣẹ liana.
inagijẹ: ls, dir
Get-Alias
Lati wa awọn inagijẹ ti a àsẹ ni Powershell lo Get-Alias pipaṣẹ.
Fun apere, ri gbogbo awọn aliases bẹrẹ pẹlu r
get-alias r*
The Get-Alias aṣẹ ara ni awọn ohun inagijẹ gal. The following will do the same thing as above…
gal r*
Get-Alias tun n ni awọn ni kikun aṣẹ ti ohun inagijẹ
gal ls
olukawe: ls -> Get-ChildItem
A tun le ri gbogbo awọn aliases ti awọn pàtó kan àṣẹ pẹlu awọn -Definition parameter. Fun apere, jẹ ki ká ri gbogbo awọn aliases ti awọn Get-ChildItem pipaṣẹ. a lo -d eyi ti o jẹ kukuru fun -Definition
omoge -D gba-childitem
olukawe
o -> Gba-ChildItem gci -> Gba-ChildItem ls -> Gba-ChildItem
Get-Command finds the commands by command name. Get-Command ni o ni awọn inagijẹ gcm. So we can do this…
Gba cmdlets bere pẹlu gba
gcm -c cmdlet get*
Awọn loke jẹ kanna bi….
Get-Command -CommandType Cmdlet Get*
Lati gba iranlọwọ lori eyikeyi ninu awọn aliases tabi ofin, just type help in front of the command. Fun apere…
iranlọwọ cp
