Cheat sheets / PowerShell
PowerShell Cheat Sheet
The 36 PowerShell commands worth knowing by heart: files, text, searching, shaping output, processes and the network. Click a command to copy it.
This page also works as a hotkey overlay. Hold Ctrl+Space to see it, let go to hide it. What is this?
Files and folders
Read and write text
Find things
Filter and shape output
PowerShell passes objects, not text, between commands. Swap Get-Process for any command and CPU for any of its properties.
Processes and services
System and network
No commands match .
Parts in {{double braces}} are blanks: click the command and you type the value before it is copied. Everything here works in both Windows PowerShell 5.1 and PowerShell 7. The short names you may know still work: ls, cd, cat, cp, mv and rm are aliases for the commands above.
Keep this cheat sheet on a hotkey
BrainRAM is a small free app for Windows. Hold Ctrl+Space and this page appears on top of whatever you are doing. Let go and it's gone. Click a cell and it's copied.
Each row is one topic, named at its left edge, in the same order as this page. So system and network is always the bottom row, and after a few days you stop reading and just reach for the spot.
Cells with a blank, like {{name}}, ask you for the value first and copy the finished command, the same way they do on this page.
- Download BrainRAM Free, no account, works offline. The installer isn't code-signed yet, so Windows shows a blue warning: click More info, then Run anyway.
- Add this page to BrainRAM Opens BrainRAM with this page ready to import.
BrainRAM runs on Windows today. The macOS and Linux versions are on the way.
Email me when mine is ready