learn Command

Purpose

Provides computer-aided instruction for using files, editors, macros, and other features.

Syntax

learn[- Directory] [ Subject[ LessonNumber]]

Description

The learn command provides computer-aided instruction for using files, editors, macros, and other features. The first time you invoke the command, the system provides introductory information about the learn command. Otherwise, the learn command begins at the point where you left the last learn command session.

You can bypass the default action of the learn command by specifying the Subject parameter. The learn command starts with the first lesson of the subject you specify. You can specify any of the following subjects:

  • Files
  • Editors
  • More files
  • Macros
  • EQN (the enquiry character)
  • C (the language)

    Note: You can only run the EQN lesson on a hardcopy terminal that is capable of 1/2 line motion. The /usr/share/lib/learn/eqn/Init file contains a detailed list of the supported terminals.

When you enter the learn command, the system searches the /usr/share/lib/learn directory for the appropriate lesson file. Use the -Directory flag to identify a different search directory.

Subcommands

  • The bye subcommand terminates a learn command session.
  • The where subcommand tells you of your progress; the where m subcommand provides more detail.
  • The again subcommand re-displays the text of the lesson.
  • The again LessonNumber subcommand lets you review the lesson.
  • The hint subcommand prints the last part of the lesson script used to evaluate a response; the hint m subcommand prints the entire lesson script.

Parameters

Item Description
-Directory Allows you to specify a different search directory. By default, the system searches for lesson files in the /usr/share/lib/learn directory.
LessonNumber Identifies the number of the lesson.
Subject Specifies the subject you want instruction on.

Examples

To take the online lesson about files, enter:

learn files

The system starts the learn program and displays instructions for how to use the program.

Files

Item Description
/usr/share/lib/learn Contains the file tree for all dependent directories and files.
/tmp/pl* Contains the practice directories.
$HOME/.learnrc Contains the startup information.