How to do it...

As we have already mentioned, it is simple to think in PowerShell. When we know that the verb to fetch any information locally is Get, and the noun in this case would be Alias, the cmdlet should be Get-Alias :

  1. Run Get-Help to understand how to use the cmdlet:
PS> Get-Help Get-Alias
If you're unsure about any command, or you would like to reduce keystrokes without involving aliases, use tab-completion. Write a part of the cmdlet or parameter and press the Tab key. PowerShell will complete the command for you, or show you suggestions, based on which platform you're doing this on.
  1. According to the help documentation, all of the parameters for Get-Alias are optional (they are all enclosed in []). Therefore, simply running ...

Get PowerShell Core for Linux Administrators Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.