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

Chapter 6. Command Aliases

Command aliases are a powerful addition to any shell scripter's toolbox. For decades, UNIX shell users have been able to alias a command to something shorter and friendlier. Unfortunately, the DOS-based shells, command.com and cmd.exe, lacked that feature. In practice, external tools like doskey.exe allow users to define an alias for a command, but they are not built into the shell, and users have to learn their quirky syntax. PowerShell finally fills that gap in Windows shells and provides built-in support for command aliases.

Aliases can be extremely helpful in relieving the strain on your wrists by saving enormous amounts of typing. PowerShell provides shorter alias names for its verbose cmdlet names out of the ...

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