snippetbashTip
Get-Alias — List and get command aliases in the current PowerShell session. This command can only be run under P
Viewed 0 times
commandandclialiasesget-aliaslistget
windows
Problem
How to use the
Get-Alias command: List and get command aliases in the current PowerShell session. This command can only be run under PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-alias>.Solution
Get-Alias — List and get command aliases in the current PowerShell session. This command can only be run under PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-alias>.List all aliases in the current session:
Get-AliasGet the aliased command name:
Get-Alias {{command_alias}}List all aliases assigned to a specific command:
Get-Alias -Definition {{command}}List aliases that begins with
abc, excluding those which ends at def:Get-Alias {{abc}}* -Exclude *{{def}}Code Snippets
List all aliases in the current session
Get-AliasGet the aliased command name
Get-Alias {{command_alias}}List all aliases assigned to a specific command
Get-Alias -Definition {{command}}List aliases that begins with `abc`, excluding those which ends at `def`
Get-Alias {{abc}}* -Exclude *{{def}}Context
tldr-pages: windows/Get-Alias
Revisions (0)
No revisions yet.