quiz: Add copyright metadata
[quizzer.git] / quizzes / posix-utilities.json
1 {
2         "version": "0.1",
3         "copyright": [
4                 "Copyright (C) 2013 W. Trevor King <wking@tremily.us>",
5                 "",
6                 "This file is part of quizzer.",
7                 "",
8                 "quizzer is free software: you can redistribute it and/or modify it under the",
9                 "terms of the GNU General Public License as published by the Free Software",
10                 "Foundation, either version 3 of the License, or (at your option) any later",
11                 "version.",
12                 "",
13                 "quizzer is distributed in the hope that it will be useful, but WITHOUT ANY",
14                 "WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR",
15                 "A PARTICULAR PURPOSE.  See the GNU General Public License for more details.",
16                 "",
17                 "You should have received a copy of the GNU General Public License along with",
18                 "quizzer.  If not, see <http://www.gnu.org/licenses/>."
19                 ],
20         "introduction": "Test your knowledge of POSIX utilities.",
21         "questions": [
22                 {
23                         "class": "ScriptQuestion",
24                         "interpreter": "sh",
25                         "id": "ls",
26                         "prompt": "List all the files in the current directory.",
27                         "answer": "ls",
28                         "compare_answers": true,
29                         "setup": [
30                                 "touch file-1 file-2 file-3"
31                                 ],
32                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
33                 },
34                 {
35                         "class": "ScriptQuestion",
36                         "interpreter": "sh",
37                         "prompt": "Print the current directory to stdout.",
38                         "answer": "pwd",
39                         "compare_answers": true,
40                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
41                 },
42                 {
43                         "class": "ScriptQuestion",
44                         "interpreter": "sh",
45                         "id": "cd",
46                         "prompt": "Change to your home directory.",
47                         "answer": "cd",
48                         "post_answer": [
49                                 "pwd"
50                                 ],
51                         "compare_answers": true,
52                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
53                 },
54                 {
55                         "class": "ScriptQuestion",
56                         "interpreter": "sh",
57                         "id": "cd ..",
58                         "prompt": "Change to the parent of your current working directory.",
59                         "answer": "cd ..",
60                         "post_answer": [
61                                 "pwd"
62                                 ],
63                         "compare_answers": true,
64                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html",
65                         "dependencies": [
66                                 "cd"
67                                 ]
68                 },
69                 {
70                         "class": "ScriptQuestion",
71                         "interpreter": "sh",
72                         "id": "cat",
73                         "prompt": "Print the contents of README file to the terminal.",
74                         "answer": "cat README",
75                         "compare_answers": true,
76                         "setup": [
77                                 "echo 'This project is wonderful' > README"
78                                 ],
79                         "help": [
80                                 "The README file is in your current directory.",
81                                 "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
82                                 ],
83                         "dependencies": [
84                                 "ls"
85                                 ]
86                 }
87         ]
88 }