Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Help Commands: man, info, help, whatis, apropos

Lesson 5 of 31 in the free Operating System & Linux Programming notes on Siksha Sarovar, written by Rohit Jangra.

Why You Should Live in the Manual

Linux ships with extensive built-in documentation. Mastering help commands turns the shell into a self-teaching environment.

1. man — The Manual

The man (manual) command displays a structured page about a command, system call or configuration file.

Sections:

SectionContent
1User commands (ls, cp)
2System calls (fork, open)
3Library functions (printf)
4Devices (/dev/null)
5File formats (/etc/passwd)
6Games
7Misc / conventions
8System administration commands

Inside man, use /pattern to search and q to quit.

2. info — GNU Hypertext Documentation

GNU programs ship richer info pages with hyperlinks and a node tree. Navigate with n (next), p (previous), u (up), q (quit).

3. --help Flag

Almost every modern command supports --help to print a short summary and option list. Built-in shell commands like cd and alias use the bash help builtin instead, because they have no man page of their own.

4. whatis — One-line Description

whatis queries the man-page database for a one-line description. Run mandb once if the database is empty.

5. apropos — Search by Keyword

When you don't know the exact command, apropos keyword (same as man -k keyword) searches the short descriptions of all man pages for that keyword.

Quick Reference Table

CommandUse Case
man lsDetailed manual page
info coreutils 'ls invocation'Hyperlinked manual
ls --helpQuick option summary
help cdHelp for shell builtin
whatis grepOne-line summary
apropos editorFind commands related to editors

Worked Example

You vaguely recall a command that compresses files but cannot remember its name:

apropos compress lists candidates: gzip, bzip2, xz, zip. You then run man gzip for details.

Summary

Use man and info for depth, --help and help for speed, and apropos/whatis to discover commands you don't know.