Geody Labs


# Main Index: Debian Linux Magic Spells Cheat Sheet (one liners, how to, tips and tricks)

# Fortune Cookies

apt-get install fortunes

/usr/games/fortune  # return a fortune cookie (fetches a random sentence (% separated lines) from a random file in /usr/share/games/fortunes/ )
/usr/games/fortune PATH/FILE  # return a fortune cookie fetching a random sentence (% separated lines) from the given FILE

To create your own fortune files:
  1. Create a text file separating each fortune cookie with lines containing only a percent (%) sign.
  2. Create a database file for that text file, with the same file name followed by a .dat extension, and place it in the same directory: strfile PATH/FILENAME PATH/FILENAME.dat




Please DONATE to support the development of Free and Open Source Software (PayPal, Credit Card, Bitcoin, Ether)

Page issued on 29-Sep-2023 14:06 GMT
Copyright (c) 2023 Geody - Legal notices: copyright, privacy policy, disclaimer