HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fortune — Print a random quotation (fortune-cookie style). More information: <https://manned.org/fortune>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
fortunecommandquotationcliprintrandomcookie

Problem

How to use the fortune command: Print a random quotation (fortune-cookie style). More information: <https://manned.org/fortune>.

Solution

fortune — Print a random quotation (fortune-cookie style). More information: <https://manned.org/fortune>.

Print a quotation:
fortune


Print an [o]ffensive quotation:
fortune -o


Print a [l]ong quotation:
fortune -l


Print a [s]hort quotation:
fortune -s


List the available quotation database [f]iles:
fortune -f


Print a quotation from one of the database files listed by fortune -f:
fortune {{path/to/file}}


Pipe a fortune through another command (like cowsay or lolcat):
fortune | cowsay | lolcat

Code Snippets

Print a quotation

fortune

Print an [o]ffensive quotation

fortune -o

Print a [l]ong quotation

fortune -l

Print a [s]hort quotation

fortune -s

List the available quotation database [f]iles

fortune -f

Context

tldr-pages: common/fortune

Revisions (0)

No revisions yet.