πŸ› οΈ 1. man – Manual Pages

Displays the full manual (documentation) for a command.

man ls

πŸ”Ή Scroll with arrow keys or spacebar, exit with q.

You can also search inside the man page using / followed by a keyword.


🧩 2. --help Option

Most commands support --help to show a quick summary of usage and options.

ls --help

βœ… Good for quick reference (less detailed than man).


πŸ“š 3. info – GNU Info System

Gives detailed documentation in a tree structure, often more in-depth than man.

info coreutils 'ls invocation'

Use Tab, Enter, and arrow keys to navigate. Press q to quit.


πŸ§ͺ 4. whatis – Short Description

Gives a one-line summary of a command.

whatis grep

Output: grep (1) - print lines matching a pattern


πŸ” 5. apropos – Search for Commands by Keyword

Searches all man pages for a keyword.

apropos copy

Useful if you don’t know the exact command name.


🧡 6. type – Find Out What a Command Is

Shows whether a command is built-in, an alias, or an external binary.

type cd

Output: cd is a shell builtin


🐚 7. help – For Bash Built-in Commands

Use help for built-in Bash commands like cd, echo, if, etc.

help cd

πŸ” 8. Tab Completion & compgen

Hit the Tab key once or twice to autocomplete commands or filenames.

You can also list available commands:

compgen -c

πŸ”§ Bonus: tldr – Simplified Help Pages (if installed)

Provides simplified and community-maintained help pages.

tldr tar

You may need to install it first: sudo apt install tldr or sudo yum install tldr.


πŸ“Œ Summary

ToolPurpose
manFull manual page
--helpQuick options and usage
infoStructured, detailed documentation
whatisOne-line command description
aproposSearch man pages by keyword
typeShow command type (builtin, etc.)
helpHelp for Bash built-ins
tldrCommunity-simplified command help
Basic - Command Line Interface