Sabtu, 16 Juni 2018

Sponsored Links

Ô±Õ¶Õ¤Ö€Õ¡Õ¶Õ«Õ¯ on Twitter:
src: pbs.twimg.com

luck is a program that displays pseudorandom messages from the citation database that first appeared in Version 7 Unix. The most common version of modern systems is BSD luck , originally written by Ken Arnold. Distribution of fortune is usually bundled with a collection of themed files, containing speeches such as those found in fortune cookies (hence the name), quotes from famous people, jokes, or poetry. In November 2017, the quote (with the exception of tips related to system operation) was removed from FreeBSD completely after the user's complaint regarding quotes from Adolf Hitler contained in some files.

luck is mostly found on Unix-like systems, but clients for other platforms also exist. Often, users in the Unix text-mode terminal will place this command into the .profile or .logout file to display it in logon and logout, respectively. It's also used to generate text input for certain XScreenSaver modes. Many people choose to inculcate luck into the cowsay command, to add more humor to the dialogue.


Video Fortune (Unix)



Content

Most Unix systems use fortunes that are heavily skewed towards a Unix user base, and thus contain many obscure jokes about computer science and computer programming. Other favorite sources include excerpts from science fiction ( Star Trek , The Cyberiad , Doctor Who , The Hitchhiker's Guide to the Galaxy i>, etc.), Zippy the Pinhead, and the writings of Ambrose Bierce and Dave Barry. Most luck collections also include a wide variety of quotations, jokes, and other more conventional short sections. Some distributions include "offensive" dicta, which requires the -a or -o option to be missed. These fortunes often include rude humor and profanity, personal attacks, and controversial comments about religion. Sometimes they are provided by other packages, but on FreeBSD 10.0, the offensive dicta has been removed completely. The right luck varies between every Unix type, but there seems to be a strong overlap between the lucky files of FreeBSD and OpenBSD. The Plan 9 lucky file seems much shorter, with many on only 1 line, and the 'offensive' dicta is much stronger. Most Linux distributions, such as Debian (and their derivatives), choose FreeBSD luck to put in their lucky packages, which can be installed through the package manager.

Maps Fortune (Unix)



Destination

One of the riches included, from the "goedel" collection of wealth about fortune itself, summarizes the purpose of the program:

 Does anyone realize that the purpose of the fortune cookie program is for  to ease the tension of the project? When have you ever seen a cheery cake, a  non-cynical, or even informative cookies?  Â Â Â Â Â Â Maybe by accident, we have a channel for our aggression. This  still raises the question of whether the cookie releases pressure or just  serves to collect warning signs.  
 Longevity of the revolution!  Â Â Â Â Â Â Â Have a great day.  

The original fortune program can be used for the more common task of retrieving random lines from plain text files. Examples of such use are given in rc documentation. However, in most modern Unix systems luck can not be used in this way, because they use ad hoc file format for luck file to allow multiline pearl word.

Microsoft Claims Land O'Lakes as Cloud Customer | Fortune
src: fortunedotcom.files.wordpress.com


Lucky file

The conventional version fortune uses two files for each list of excerpts: a text file with a quote, each separated by a "%" character on its own line, and a random access data file generated by strfile (8) program. Alternative implementations, including those created for display on web pages, usually use only text files.

Dave Olson's home page
src: www.unixfolk.com


General options

Some common options exist that change how the command-line version of luck behaves:

Theo Verelst Local Homepage
src: www.theover.org


See also

  • cowsay
  • QOTD

Without Dennis Ritchie, there would be no Steve Jobs | ZDNet
src: www.zdnet.com


References


fortune (UNIX) - Wikipedia
src: upload.wikimedia.org


External links

  • Archive fortune files from various systems.
  • The man page for the original Unix fortune (6) command.
  • Manuals for luck programs under Linux
  • Fortune-mod source code maintenance version - in GitHub with new release
    • ftp://ftp.ibiblio.org/pub/linux/games/amusements/fortune/- source code for the fortune-mod program
  • Wikis containing all original non-offensive riches
  • The modern color-oriented luck database
  • Luck-mod add-on for luck related to math

Source of the article : Wikipedia

Comments
0 Comments