PowerShell: Find Command
Show Documentation
help name
- Show the doc or full name of a thing name. For example, type
help dir
and it'll show the doc forGet-ChildItem
.
Find Command, List Commands
(gcm
is alias of Get-Command
)
gcm name
- Check if a command name is available. (Command means any of {Cmdlet,
Alias,
Function, filter,
Script, app}.) Result includes any app in the Environment Variables
$env:path
gcm *z*
- List command names that contain z.
gcm name -UseFuzzyMatching
- List command names that match letters in name.
gcm name -all
- Search all, including commands of the same type that have the same name. By default, Get-Command gets only the commands that run when you type the command name.
gcm name | fl
- Make the full path of the command visible.
(fl
is alias ofFormat-List
) gcm name | select -Property Path
- Show just full path of the command.
(select
is alias ofSelect-Object
)

List Alias, Find Full Name
PowerShell command can have aliases. For example,
dir
,
ls
,
gci
,
are all the same as
Get-ChildItem
.
Get-Alias
- Show all aliases.
(Note:Get-Alias
only work with alias. Some commands are functions, such ashelp
,mkdir
. Usehelp name
to see what they are.) Get-Alias *r
- Show aliases ending in r
Get-Alias alias
- Find the fullname of a alias alias. For example,
Get-Alias dir
List All Alias of a Command Full Name
Get-Alias -definition cmdlet_name
- List all aliases of a cmdlet. For example,
Get-Alias -definition get-childitem