get-help — Display help text for cmdlets and functions — man equivalent across all 5 shells
Equivalents in every shell
man grepReads the man page for a command (manual section 1 by default). `man -k <keyword>` (or `apropos`) searches summary lines. For shell builtins, `help <builtin>` gives bash-specific text since builtins do not have separate man pages. `info <command>` accesses GNU info pages where available.
man grepSame `man` toolchain. Zsh also has `run-help` (interactive: `Esc h` on the current command line) which prefers more granular sources — for builtins it shows the zsh manual section; for external commands it falls back to `man`.
man grepSame `man` toolchain. Fish also has `help <topic>` which opens the fish documentation in your browser (great for fish-specific syntax). `man fish-tutorial` is a quick read for fish-native users.
Get-Help Get-ProcessAliased as `help` and `man`. Returns structured help text — `-Examples`, `-Detailed`, `-Full` switch between verbosity levels; `-Online` opens the docs.microsoft.com page in the default browser. First-run on a fresh pwsh install: run `Update-Help` once to download the bundled help XML.
help dirBuilt-in. Prints help for cmd internal commands (`help` alone lists them). External tools usually accept `<command> /?` for short help (`xcopy /?`, `robocopy /?`). cmd has no equivalent to `man -k` keyword search.
Worked examples
Show help for a command
man grepGet-Help Get-Processhelp dirShow examples only
Get-Help Get-Process -ExamplesOpen the canonical online docs
xdg-open https://manpages.debian.org/grepGet-Help Get-Process -OnlineGotchas
- On a fresh pwsh install, `Get-Help <cmdlet>` returns only a one-line stub plus a prompt to run `Update-Help`. Run it ONCE as administrator (Windows) or with sudo (Linux/macOS) to populate the local help cache from Microsoft's servers — without it, `-Examples` and `-Detailed` return nothing useful.
- `Get-Help <name>` accepts wildcards: `Get-Help Get-*` lists every cmdlet starting with `Get-`. Combined with `-Category` you can scope to e.g. only Cmdlets, only Functions, or only About_ topics.
- `about_*` topics are conceptual docs (`about_Variables`, `about_Operators`, `about_PSReadLine`) — there is no `man` equivalent for these. List them with `Get-Help about_*`; they're the closest thing pwsh has to GNU info pages.
- `-Online` builds the URL from the cmdlet's HelpUri property and opens it via `Start-Process`. For modules without an online help link, it falls back to a Microsoft Docs search — useful but not authoritative. Always check the help text version first if behaviour is version-sensitive.
- The `man` alias for `Get-Help` shadows the system `/usr/bin/man` on Linux/macOS pwsh hosts. To reach the Unix man page when both `Get-Help <cmdlet>` and Unix man pages might match, use `& /usr/bin/man grep` (forced external invocation) or `Remove-Item Alias:man` once per session.