PowerShell: Find Command

By Xah Lee. Date: . Last updated: .

Find Command, List Commands

Get-Command name
Check if a command name is available. (Command means any of {Cmdlet, alias, function, filter, script, app}.)
Get-Command *z*
List command names that contain z.
help name
Find the doc or full name of a thing name. For example, type help dir and it'll show the doc for Get-ChildItem.
pwsh Get-Command 2021-01-16 hVdbf
list all commands that contains z in name.

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 as help, mkdir. Use help 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
Get-Alias -definition cmdlet_name
List all aliases of a cmdlet. For example, Get-Alias -definition get-childitem

PowerShell

How-to

Advanced

Script Examples