6.1. Working with Aliases

PowerShell offers a host of useful commands—quite a few of them come with the default installation; Version 1.0 comes with more than a hundred. Here is how to get the exact number of cmdlets registered on your system:

PS> (get-command -type Cmdlet).Length
129

129 is quite a large number! The PowerShell designers have imposed a lot of rules and guidelines on cmdlet authors, so that names and parameters are consistent across the system and users learn easily. Even with cmdlet naming conventions and all the similarities across commands, learning more than a hundred of them can be a daunting task. What do you do if you cannot trick your mind into remembering some of the names? That is right; you cheat and set up an alias ...

Get Pro Windows PowerShell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.