O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required