Back to Blog
Arnošt Havelka

Getting Help in Bash

Learn how to access help and documentation for any command.

Start Interactive Lesson
Getting Help in Bash

Getting Help in Bash

Forgotten how a command works? No problem! Bash provides built-in help systems to guide you.

Quick Help: command --help

Almost every command supports the --help flag to show its usage and options.

Usage:command--help
--help
Quick help - displays usage information and available options.

See what a command can do:

Command Prompt
C:\Users\User>cat --help

Full Documentation: man Pages

The man command opens the comprehensive manual for any command. Press q to exit.

Usage:man[command]
man
Manual pages - displays detailed documentation for a command.

Explore full documentation:

Command Prompt
C:\Users\User>man grep

When to Use Which

Use --help when you need:

Use man when you need:


Knowledge Check

1 / 3

How do you get quick help for a command?

References

These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.

Up Next

Reading Files with cat

Use cat to quickly view file contents in the terminal.