PowerShell: List Alias, Find Alias

By Xah Lee. Date: . Last updated: .

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

List All Aliases

(Get-Alias has alias gal)

powershell list alias 2017 05 09
Get-Alias

Find Fullname

List a Cmdlet's Aliases

List Functions

Note, Get-ChildItem as aliases {dir, ls, gci}.

powershell list functions 2017 05 09
list functions by dir function:*

List Commands

PowerShell has over 200 commands. Often, you need to know if there's a command that does what you want. You can search them by Get-Command.

Get-Command → list commands. (Command means any of {cmdlet, alias, function, filter, script, app}.)

# list all commands
Get-Command
# list all commands whose name contains *z*
Get-Command *z*
get command 2020-05-20 v3q8n
PowerShell Get-Command 2020-05-20

If you have a question, put $5 at patreon and message me.

PowerShell

xah powershell logo