Me pēhea te ki te tiki i te tauturu, me te kitea ingoakē o whakahau i roto i te Windows Powershell?

A command in Powershell can have one or many alias. An alias is the command but in a shorter and mostly abbreviated form. Some aliases are made to match bash commands.

 

Get-ChildItem

Tenei whakahau i ngā te ihirangi o te whaiaronga mahi nāianei.
ingoakē: ls, dir

 

Get-Alias

Hei kitea te ingoakē o te whakahau i roto i Powershell whakamahi i te Get-Alias whakahau.

 

Hei tauira, kitea tīmata nga ingoakē katoa ki te r
get-alias r*

 

Ko te Get-Alias whakahau ano he ingoakē gal. The following will do the same thing as above…
gal r*

 

Get-Alias whiwhi hoki i te kupu tonu o te ingoakē
gal ls
ngä: ls -> Get-ChildItem

 

Ka taea hoki e kitea e tatou nga ingoakē katoa o te whakahau i tohua ki te -Definition parameter. Hei tauira, kia kitea a nga ingoakē katoa o te Get-ChildItem whakahau. whakamahi tatou -d i te mea poto hoki -Definition

gal -d tiki-childitem

ngä

koe -> Haere-ChildItem
gci -> Haere-ChildItem
ls -> Haere-ChildItem

 

Get-Command finds the commands by command name. Get-Command He te ingoakē gcm. So we can do this…
Haere cmdlets tīmata ki whiwhi
gcm -c cmdlet get*

 

Ko te taua rite te runga ake….
Get-Command -CommandType Cmdlet Get*

To get help on any of the aliases or commands, just type help in front of the command. Hei tauira…

help cp