Թե ինչպես կարելի է ստանալ օգնություն եւ գտնել aliases հրամանները 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
Է գտնել alias հրամանի է Powershell օգտագործել Get-Alias հրաման.
Օրինակ,, գտնել բոլոր aliases սկսեք r
get-alias r*
The Get-Alias հրամանը ինքն ունի alias gal. The following will do the same thing as above…
gal r*
Get-Alias նաեւ ստանում է լիարժեք տիրապետում է alias
gal ls
Ելքեր: ls -> Get-ChildItem
Մենք կարող ենք գտնել նաեւ բոլոր aliases է սահմանված հրամանատարության հետ է -Definition parameter. Օրինակ,, եկեք գտնել բոլոր aliases է, որ Get-ChildItem հրաման. Մենք օգտագործում ենք -d որը կարճ -Definition
Gal -d ստանալ, childitem
Ելքեր
դուք -> Get-ChildItem GCI -> Get-ChildItem LS -> Get-ChildItem
Get-Command finds the commands by command name. Get-Command ունի alias gcm. So we can do this…
Ստանալ cmdlets սկսած ստանալ
gcm -c cmdlet get*
Վերը նշված նույնն է, ինչպես….
Get-Command -CommandType Cmdlet Get*
Ստանալ օգնություն է որեւէ aliases կամ հրամանների, just type help in front of the command. Օրինակ,…
help cp
