snippetbashTip
fortune — Print a random quotation (fortune-cookie style). More information: <https://manned.org/fortune>.
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:
fortunePrint an [o]ffensive quotation:
fortune -oPrint a [l]ong quotation:
fortune -lPrint a [s]hort quotation:
fortune -sList the available quotation database [f]iles:
fortune -fPrint 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 | lolcatCode Snippets
Print a quotation
fortunePrint an [o]ffensive quotation
fortune -oPrint a [l]ong quotation
fortune -lPrint a [s]hort quotation
fortune -sList the available quotation database [f]iles
fortune -fContext
tldr-pages: common/fortune
Revisions (0)
No revisions yet.