PowerShell: Find Command, List Alias

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 fullname of a name name. For example, help dir
pwsh Get-Command 2021-01-16 hVdbf
pwsh Get-Command 2021-01-16

List Alias, Find Full Name

PowerShell cmdlets can have aliases. For example, dir, ls, gci, are all the same as Get-ChildItem .

Show all aliases. (Get-Alias has alias gal)
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.


xah powershell logo

More Advanced