get alias file powershell code example
Example 1: set alias in powershell
PS> Set-Alias -Name list -Value Get-ChildItem
PS> Get-Alias -Name list
CommandType Name
----------- ----
Alias list -> Get-ChildItem
Example 2: powershell get aliases
# to get list of all aliases
Get-Alias
# or use its alias
gal
# to get a specific alias
gal <command-name>
# for example
gal man