Question and data repository for the 2023 Capture the Flag.
1 | Where is the curl
executable located? Some systems vary, if your answer is incorrect, try a common alternative.
2 | What is the linux command used for reading manuals?
3 | Where is the less
executable located?
4 | What is the key for scrolling down by one half of screen size in less
?
5 | What is the longer name of the -K
flag to curl
?
6 | What is the cp
command flag allowing for copying directories?
7 | What is the ls
command flag used for human-readable output?
8 | What is the mv
command flag which will interactively prompt before overwriting files?
9 | What is the cat
command flag which shows line numbers?
10 | If the variable STRING
is set to banana
, what does the command echo ${STRING:4}$
return?
11 | If the variable STRING
is set to to be or not to be
, what does the command echo ${STRING[@]/be/eat}
return?
12 | If the variable a
is set to 3 and b
is set to 4, what does the command if [[ $a -le $b ]]; then echo $a; else echo $b; fi
return?
13 | If the variable p
is set to (3 1 4 1 5 9)
, what does the command echo $((${p[0]} * ${p[2]}))
return?
14 | What is the grep
command flag used to select non-matching lines?
15 | What is the longer name of the -c
flag to grep
?
16 | How many lines are in file_a.txt
?
17 | What does the command head -n 10 file_a.txt | wc -l
return?
18 | How many words in file_a.txt
start with the letter "d"?
19 | How many words are in file_a.txt
that contain only 4 letters?
20 | What is the last word in file_b.txt
?
21 | How many words contain "ello" inside them in file_b.txt
?
22 | What is the line number of the word "helicopter" in file_b.txt
?
23 | What is the line number of the word "croissant" in file_c.txt
?
24 | How many characters are in file_c.txt
?
25 | How many words contain "croissant" inside them in file_c.txt
?
26 | How many words end with the letter "t" in file_c.txt
?
27 | How many words start with the letter "c" in file_c.txt
?
28 | How many words have the letter "o" directly followed by either "u" or another "o" in file_c.txt
?
29 | What word is at the same line in file_c.txt
as the word "sheep" is in file_a.txt
?
30 | What is the second word in file_c.txt
which contains the letter x
?