Get-Alias
List command aliases
Get-Alias -Name gci
- Works on
- WindowsLinuxmacOS
- PowerShell
- 5.1 and later
- Reference
- Microsoft Learn: Get-Alias
Aliases are shortcuts. Fine in the shell. In scripts, write the real cmdlet name so the next human can read it.
Try this
Get-Alias | Where-Object Definition -eq 'Get-ChildItem'
Coming from another shell
| Shell | What you might type |
|---|---|
| bash / zsh | alias |
More in From bash and From cmd.