fortune Command

Purpose

Displays a random fortune from a database of fortunes.

Syntax

fortune [ - ] [ -s | -l | -a [ -w ] ] [ File ]

Description

The fortune command displays a fortune from either the fortunes.dat file or the file specified by the File parameter. After displaying the fortune, the fortune command exits.

Flags

Item Description
- Displays the usage summary.
-a Displays either type of fortune.
-l Displays long fortunes only.
-s Displays short fortunes only.
-w Waits after displaying a fortune to allow the user time to read the fortune.

Files

Item Description
/usr/games Location of the system's games.
/usr/games/lib/fortune/fortunes.dat Location of the default fortune database.