Go to file
2023-07-02 15:29:56 -04:00
kjodlenet Initial commit 2023-07-02 15:26:02 -04:00
readme.md Updated readme file with man page links 2023-07-02 15:29:56 -04:00

Fortune Fortune Files

The fortune utility is a fun little utility that, when called, outputs a fortune to stdout.

The fortunes are found in (generally) /usr/share/games/fortunes. To create you own fortunes, create a text file in that folder (you will need root privileges), and separate each fortune with a % sign on a separate line. (See the current files for examples.)

After you save your file, use the strfile utility to create a .dat file that fortune can read.

Offensive or potentially offensive fortunes should have -o appended to the file name and be placed in /usr/share/games/fortunes/off.

For more information, see the fortune(6) and (especially) strfile(1) pages.