terminal.cab

All commands

man

Topic: Shell and scripts

Program: man

Shows the manual page of a command.

Package: basis-info

Usage

man PAGE

Description

Show the manual page of the program PAGE, one screen at a time. The keys are the same as in less: q quits, space goes one screen on, b one screen back, /TEXT searches.

Options in the simulator

3 more options of the real program, not in the simulator yet
  • -k, --apropos not in the simulator yet

    On a real system man then searches pages for a keyword (like apropos).

  • -f, --whatis not in the simulator yet

    On a real system man then shows only the one-line description of a page (like whatis).

  • -V, --version not in the simulator yet

    On a real system it prints the version of man.

Examples

From the lesson Getting help
man rm

Try it in the terminal

From the lesson Help and history
man ls | head -n 5
NAME
       ls - lists what is in a directory

SYNOPSIS
       ls [OPTION]... [FILE]...

Try it in the terminal

From the command of the day: man and --help
man ls
NAME
       ls - lists what is in a directory

SYNOPSIS
       ls [OPTION]... [FILE]...
Manual page ls(1) line 1 (press q to quit)

Try it in the terminal

Where you learn it

Lessons

Command of the day

All commands