HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

Set-Alias — A PowerShell command to set or modify alias. Note: `sal` can be used as an alias for `Set-Alias`. Mo

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandmodifyclipowershellaliasset-aliasset
windows

Problem

How to use the Set-Alias command: A PowerShell command to set or modify alias. Note: sal can be used as an alias for Set-Alias. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/set-alias>.

Solution

Set-Alias — A PowerShell command to set or modify alias. Note: sal can be used as an alias for Set-Alias. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/set-alias>.

Create or reassign new alias:
Set-Alias -Name {{text}} -Value {{command}}


Add a description to alias:
Set-Alias -Name {{text}} -Value {{command}} -Description "{{description}}"

Code Snippets

Create or reassign new alias

Set-Alias -Name {{text}} -Value {{command}}

Add a description to alias

Set-Alias -Name {{text}} -Value {{command}} -Description "{{description}}"

Context

tldr-pages: windows/Set-Alias

Revisions (0)

No revisions yet.