QUIZ(6)
π QUIZ(6) β the games manual page, bestie edition β¨
okay so real talk: this is quiz from the Games Manual section 6, and it's literally the most fun you can have in a terminal, no cap π
β¨ NAME β¨
quiz β random knowledge tests π§ π
πΈ SYNOPSIS πΈ
quiz [-t] [-i file] [question answer]
π¦ DESCRIPTION π¦
The quiz utility tests your knowledge of random facts. It has a database of subjects from which you can choose. With no arguments, quiz displays the list of available subjects. like, it just shows you the menu, very demure π«Ά
The options are as follows:
-tβ Use tutorial mode, in which questions are repeated later if you didn't get them right the first time, and new questions are presented less frequently to help you learn the older ones. it's giving study buddy energy fr πβ¨-iβ Specify an alternative index file. yes bestie, you can bring your own index π
Subjects are divided into categories. You can pick any two categories from the same subject. quiz will ask questions from the first category and it expects answers from the second category. For example, the command quiz victim killer asks questions which are the names of victims, and expects you to answer with the cause of their untimely demise, whereas the command quiz killer victim works the other way around. π₯ wild, iconic, slightly concerning, we love it
If you get the answer wrong, quiz lets you try again. To see the right answer, enter a blank line. no pressure tho π just hit enter on an empty line and it'll spill the tea β
π§ Index and Data File Syntax π§
The index and data files have a similar syntax. Lines in them consist of several categories separated by colons. The categories are regular expressions formed using the following meta-characters:
pat|pat alternative patterns
{pat} optional pattern
[pat] delimiters, as in pat[pat|pat]pat
so like, pat|pat = this or that, {pat} = maybe this maybe nothing, and [pat] = delimiters, as in pat[pat|pat]pat. the brackets are literally just the frame, iykyk πΌοΈ
In an index file, each line represents a subject. The first category in each subject is the pathname of the data file for the subject. The remaining categories are regular expressions for the titles of each category in the subject. πβ¨
In data files, each line represents a question/answer set. Each category is the information for the question/answer for that category. π
The backslash character (`\') is used to quote syntactically significant characters, or at the end of a line to signify that a continuation line follows. yes the backslash is that girl β she escapes stuff AND she says "to be continued" π
β‘οΈ
If either a question or its answer is empty, quiz will refrain from asking it. considerate king behaviour honestly π
β FILES β
/usr/share/games/quizβ The default index and data files. the mothership πΈπ
π BUGS π
quiz is pretty cynical about certain subjects. not me getting roasted by a manpage ππ«Ά
lowkey the vibe check here: every option, every file path, every meta-character is exactly where it should be. go forth and get your trivia on, bestie π¦π
πΈ signing off, xoxo β this page comes from Debian, dated May 31, 1993 π (yes she's an elder icon and she's still slaying)
π¦ where this page comes from
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms