Conas cúnamh a fháil agus ailiasanna na n-orduithe i Windows Powershell fháil?

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

Liostaíonn an ordú an t-ábhar ar an chomhadlann reatha.
Ailias: ls, dir

 

Get-Alias

Chun teacht ar an ailias de dtoil i Powershell a bhaint as an Get-Alias orduithe.

 

Mar shampla, find all the aliases start with r
get-alias r*

 

An Get-Alias i gceannas féin ailias gal. The following will do the same thing as above…
gal r*

 

Get-Alias Faigheann chomh maith leis an láneolas acu ar ailias
gal ls
Outputs: ls -> Get-ChildItem

 

We can also find all the aliases of the specified command with the -Definition parameter. Mar shampla, let’s find all the aliases of the Get-ChildItem orduithe. 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…
Faigh cmdlets ag tosú le fháil
gcm -c cmdlet get*

 

Is é an thuas mar an gcéanna….
Get-Command -CommandType Cmdlet Get*

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

help cp