Forrest logo
back to the fortune tool

fortune:tldr:f60b8

fortune: Print a quotation from one of the database files listed by `fortune -f`.
$ fortune ${filename}
try on your machine

The command "fortune ${filename}" utilizes the fortune command to display a random quote or saying from a database of fortunes.

Here, "${filename}" is a placeholder that should be replaced with an actual filename. The purpose of this is to provide a specific fortune file to the command. By specifying a filename, you can customize the output and have the command display quotes or sayings from a specific file rather than the default fortune database.

For example, if you have a file called "myfortunes" that contains your custom collection of fortunes, running the command "fortune myfortunes" will choose and display a random fortune from "myfortunes" file.

In summary, the command "fortune ${filename}" executes the fortune command with the input of a specific filename to display a random quote or saying from the specified file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fortune tool