PowerShell: List of Aliases

By Xah Lee. Date: . Last updated: .

Command names are case-insensitive.

PowerShell has many aliases, so if you are familiar with cmd.exe or bash, you can use it right away.

For example, dir, ls, gci, are all the same as Get-ChildItem .

List All Aliases of a Command

Get-Alias -definition fullname
List all aliases of a cmdlet.

Get-Alias itself has an alias of gal

get-alias -definition get-childitem
powershell 2021-01-20 k538J
powershell alias
get-alias -definition get-alias

Find Full Name of a Alias

# find the full name of the alias dir
get-alias dir
PowerShell alias 2022-07-17 Vk7Qr
PowerShell alias 2022-07-17

Create New Alias

use New-Alias or Set-Alias

Set-Alias -Name l -Value Get-ChildItem
New-Alias -Name l Get-ChildItem

Note: unlike bash, you cannot create a alias to command with options. Write a Function instead.

Delete a Alias

To delete an alias, use Remove-Item

List all Aliases

# show aliases ending in r
get-alias *r
# list all alias
Get-Alias *

Order by Alias

Order by Full Name

Alias of Functions

PowerShell Intro

PowerShell

Practical How-To

list files

list dirs

on dir

on file

Windows config

misc


PowerShell in Depth

Programing PowerShell

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples