тусламж авч, Windows Powershell дахь тушаалууд нь хуурамч дүр хэрхэн олох вэ?

Powershell дээрх команд нь нэг юм уу олон нэрстэй байж болно. An alias is the command but in a shorter and mostly abbreviated form. Some aliases are made to match bash commands.

 

Get-ChildItem

Энэ тушаал нь одоо ажиллаж байгаа санд агуулгыг жагсаалт.
Alias: ls, dir

 

Get-Alias

To find the alias of a command in Powershell use the Get-Alias тушаал.

 

Жишээ нь:, find all the aliases start with r
get-alias r*

 

The Get-Alias command itself has an alias gal. The following will do the same thing as above…
gal r*

 

Get-Alias also gets the full command of an alias
gal ls
Outputs: ls -> Get-ChildItem

 

We can also find all the aliases of the specified command with the -Definition parameter. Жишээ нь:, let’s find all the aliases of the Get-ChildItem тушаал. 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…
Get cmdlets starting with get
gcm -c cmdlet get*

 

The above is the same as….
Get-Command -CommandType Cmdlet Get*

хуурамч дүрүүд эсвэл тушаалуудын аль ч талаар тусламж авахын тулд, just type help in front of the command. Жишээ нь:…

тусламж CP