[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 2

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

- 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

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

Related Information

The arithmetic command, back command, bj command, craps command, fish command, hangman command, moo command, number command, quiz command, ttt command, turnoff command, turnon command, wump command.


[ Previous | Next | Contents | Glossary | Home | Search ]