Chapter 28. PowerShell cheat sheet

This is our opportunity to assemble a lot of the little gotchas into a single place. If you’re ever having trouble remembering what something is or does, flip to this chapter first.

28.1. Punctuation

There’s no doubt that PowerShell is full of punctuation, and much of it has a different meaning in the help files than it does in the shell itself. Here’s what it all means within the shell:

  • ` The backtick is PowerShell’s escape character. It removes the special meaning of any character that follows it. For example, a space is normally a separator, which is why cd c:\Program Files generates an error. Escaping the space, cd c:\Program` Files, removes that special meaning and forces the space to be treated as a ...

Get Learn Windows PowerShell in a Month of Lunches, Third Edition 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.