Kā saņemt palīdzību un rast pseidonīmi par komandas 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

Šī komanda ir uzskaitītas saturu pašreizējā darba direktoriju.
citādi: ls, dir

 

Get-Alias

Lai atrastu alias komandu ar PowerShell izmantot Get-Alias komanda.

 

Piemēram, atrast visi pseidonīmi sākas ar r
get-alias r*

 

The Get-Alias komanda pati ir aizstājvārdu gal. The following will do the same thing as above…
gal r*

 

Get-Alias arī saņem pilnu komandu alias
gal ls
Outputs: ls -> Get-ChildItem

 

We can also find all the aliases of the specified command with the -Definition parameter. Piemēram, let’s find all the aliases of the Get-ChildItem komanda. 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…
Iegūstiet cmdlet sākot ar get
gcm -c cmdlet get*

 

Iepriekš ir tāds pats kā….
Get-Command -CommandType Cmdlet Get*

To get help on any of the aliases or commands, just type help in front of the command. Piemēram…

help cp