PowerShell: Find Command, List Alias
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 fullname of a name name. For example,
help dir

List Alias, Find Full Name
PowerShell cmdlets can have aliases. For example,
dir
,
ls
,
gci
,
are all the same as
Get-ChildItem
.
Get-Alias
- Show all aliases. (
Get-Alias
has aliasgal
) 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
List Functions
Get-ChildItem function:*
- List all functions.
If you have a question, put $5 at patreon and message me.