Q. How can I get a list of all aliases available in PowerShell?

John Savill

October 5, 2009

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. The cmdlet Get-Alias outputs a list of all the aliases available in the PowerShell session. Aliases are short names or alternate commands for longer PowerShell cmdlets. Aliases are also used to give alternate names to commands that may be more familiar in the command prompt. For example, there's an alias called "dir" for the Get-ChildItem cmdlet. A sample of the output is shown below.

PS C:Usersjohn.SAVILLTECH> get-aliasCommandType     Name                    Definition-----------     ----                    ----------Alias           %                       ForEach-ObjectAlias           ?                       Where-ObjectAlias           ac                      Add-ContentAlias           asnp                    Add-PSSnapInAlias           cat                     Get-ContentAlias           cd                      Set-LocationAlias           chdir                   Set-LocationAlias           clc                     Clear-ContentAlias           clear                   Clear-HostAlias           clhy                    Clear-HistoryAlias           cli                     Clear-ItemAlias           clp                     Clear-ItemPropertyAlias           cls                     Clear-HostAlias           clv                     Clear-VariableAlias           compare                 Compare-ObjectAlias           copy                    Copy-ItemAlias           cp                      Copy-ItemAlias           cpi                     Copy-ItemAlias           cpp                     Copy-ItemPropertyAlias           cvpa                    Convert-PathAlias           dbp                     Disable-PSBreakpointAlias           del                     Remove-ItemAlias           diff                    Compare-ObjectAlias           dir                     Get-ChildItem

Related Reading:



Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like