Dictation instructions:
- True cmdlet command referred to by the query alias
Get-alias-name ls
- View available aliases, either via "LS alias:" or "Get-alias"
- To view the aliases of all commands that begin with the Remove cmdlet
Dir alias: | where {$_. Definition.startswith ("Remove")}
description : dir alias: Gets an array of aliases, traversed by the where array elements,$_ represents the current element, and alias's definition is of type string because PowerShell support. The string class in Net,.net has a method startswith. It is widely used in PowerShell through the Where filtering collection.
- The following example shows how to use a script block as the value of a property parameter. This command displays an integer from 1 through 35, grouped by the remainder, divided by 2 or 3.
ps > 1..35 | group-object-property {$_% 2},{$_% 3}count Name Group-------------- 6 1, 1 {1, 7, 13, 19 ...} 6 0, 2 {2, 8, 14, 20 ...} 6 1, 0 {3, 9, 15, 21 ...} 6 0, 1 {4, 10, 16, 22 ...} 6 1, 2 {5, 11, 17, 23 ...} 5 0, 0 {6, 12, 18, 24 ...}
- The last item of the array can be obtained by $a [-1], and so on
Get-command
Get-history
Get-service
Format-list
Format-table
Set-itemproperty
Get-module
Get-eventlog
"192" PowerShell related knowledge