mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 12:55:31 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
26
tldr/windows/get-alias
Normal file
26
tldr/windows/get-alias
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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-Alias`
|
||||
|
||||
- Get 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}}`
|
||||
Reference in New Issue
Block a user