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

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.

Try the command

Get quick help for any command!

Build the command
command--help
--helpQuick help - displays usage information and available options.
Terminal
C:\Users\User>command --help

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.

Try the command

Dive deep into command documentation!

Build the command
man[command]
manManual pages - displays detailed documentation for a command.
Terminal
C:\Users\User>man [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 documentation links provide authoritative details for the commands used in this article.

Up Next

Using Bash History

Learn about Using Bash History.