Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Can You Name These Linux Distributions?


  • Please log in to reply
6 replies to this topic

#1 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 02 August 2016 - 01:19 AM

Thought I'd take a bit of a break from webdesign, and stop by the Linux section for a minute :). I found a quiz ( http://www.computerworld.com/article/3093259/linux/can-you-guess-which-linux-distribution-this-is.html ) celebrating the birthday of Linux. It shows you 25 pictures, each symbolizing a different Linux distro, and you have to guess which distro it is. It doesn't keep track of your guesses, you do, and then it lists the answers at the end.

I decided to create a simple Bash script to go along with it. If you have a bad memory (like me) instead of remembering your guesses you can use this script to keep track, and see your results.

 

Script:

I tested the script on Lubuntu, but it should work on a wide variety of distros (including: Ubuntu, Debian, Linux Mint), though on some distros you may need to install dependencies first.

1. Save the below code in a new text file (eg: ~/quiz).

#!/bin/bash
#Bash script to go along with "Can You Name These Linux Distributions?" quiz on ComputerWorld.com ( http://www.computerworld.com/article/3093259/linux/can-you-guess-which-linux-distribution-this-is.html )
#Dependencies: Sed (coreutils), Tr (coreutils), Bash (bash), Sha256sum (coreutils), Grep (grep)
#Answers
a1="fa48a4b073f7e7258f7814887cfdf947ded38e200c0a04a408d79692e7dfbd58"
a2="135698ee5b39ac9515ae9c03ff0d9525bb1dcdd50824b4aa97a8e20c9e3eb2a7"
a3="f15cb228d1168a91cf3aafd0f95de2fdccefa4c07f2e56cdd026e5c8f7ed3ae5"
a4="1040cc78e11116d37d4a3e826a6a8f2d89bf577734f57a958d5d9c811ca4c875"
a5="e160af1aa5c89cc9295f69fea8778bca01665a81060e1bcedb50cb1b6b33d9b8"
a6="86f0f35391b999e0213dd6f8b13b764ba56c77ddc832b640c311953785701171"
a7="91da34e56c551a3e01a7b5801adb634de1329a92c747a2ea53cf25e93f653b33"
a8="b838478dd45b6ddcf8f6877d3acbc0c91b911fc7bbf1678e7be3f3d89b48a350"
a9="db1a60bbff220d0910f017477df18cb7cd90892722985ac91dbfdaa1c955220f"
a10="ae7a4a6cba2f9fb1d8b9fab5e86d674bd0cd078ee2bfad8f30456c5c9c248d62"
a11="64847ca36ff4fd7c883a39e402a655dd318e50be4cb023e68d3f6056343964d1"
a12="82bbb835d924cad84590402ade5d265ae8faa0975ea743b1a2a6de5713763f67"
a13="89f78a772c1c6afc08244cf58158614f0e7be72a78335cbdced0e7acd02d78d2"
a14="5d802733ad9398353bedf4bceb8709e352837b20e0059dfacf3266c5a021ae32"
a15="d8efa21e04df01494dfa3da9bea270a3ca42ab3f91697d96cec7ddc945613e39"
a16="3d9720ad31d497d1865f35a8582c488aac80d72e2813bb416bd778f9fa2995a0"
a17="93d9301b501f5fdbb3fee2493d8deedc0ec4b6e276c64eaee5843539e3224bef"
a18="abc4839f4116b3300e08ff879cf354ed5a03b396edf05f047427725249af9f71"
a19="05f7c04973e23c87616aeab51ab6b114ce73a9b0556248d6d37e47018dba2b4d"
a20="83f7f1495e17c1c258a88002992f9f449d832963519c635c8ce1a2cc01f4feed"
a21="d2681a03f80c32cec1724af737da94d3e20b97873f92ceb2afeeed44f4961faf"
a22="21fc3076fb241d65855ed736640f9315e74d1548fd48501f2d22896384ffae7c"
a23="52c7a29eedaf10f1fd7eae638dfdbaaa2d451e8cc7f00902392e1d718aef8045"
a24="c5094971c359fff781fa2e0765dad772f5b9747bf40bb81befb136400dfecd7d"
a25="d569eba9c460c89d8105419c0065a31f775579e2de6878a38fcd2d3fcddb695a"
#Questions And Comparisons
echo -n "Question 1:"
read q1
q1=$(echo -n "$q1" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q1 == $a1 ]]; then o1="1. Correct"; else o1="1. Incorrect"; fi
echo -n "Question 2:"
read q2
q2=$(echo -n "$q2" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q2 == $a2 ]]; then o2="2. Correct"; else o2="2. Incorrect"; fi
echo -n "Question 3:"
read q3
q3=$(echo -n "$q3" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q3 == $a3 ]]; then o3="3. Correct"; else o3="3. Incorrect"; fi
echo -n "Question 4:"
read q4
q4=$(echo -n "$q4" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q4 == $a4 ]]; then o4="4. Correct"; else o4="4. Incorrect"; fi
echo -n "Question 5:"
read q5
q5=$(echo -n "$q5" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q5 == $a5 ]]; then o5="5. Correct"; else o5="5. Incorrect"; fi
echo -n "Question 6:"
read q6
q6=$(echo -n "$q6" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q6 == $a6 ]]; then o6="6. Correct"; else o6="6. Incorrect"; fi
echo -n "Question 7:"
read q7
q7=$(echo -n "$q7" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q7 == $a7 ]]; then o7="7. Correct"; else o7="7. Incorrect"; fi
echo -n "Question 8:"
read q8
q8=$(echo -n "$q8" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q8 == $a8 ]]; then o8="8. Correct"; else o8="8. Incorrect"; fi
echo -n "Question 9:"
read q9
q9=$(echo -n "$q9" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q9 == $a9 ]]; then o9="9. Correct"; else o9="9. Incorrect"; fi
echo -n "Question 10:"
read q10
q10=$(echo -n "$q10" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q10 == $a10 ]]; then o10="10. Correct"; else o10="10. Incorrect"; fi
echo -n "Question 11:"
read q11
q11=$(echo -n "$q11" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q11 == $a11 ]]; then o11="11. Correct"; else o11="11. Incorrect"; fi
echo -n "Question 12:"
read q12
q12=$(echo -n "$q12" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q12 == $a12 ]]; then o12="12. Correct"; else o12="12. Incorrect"; fi
echo -n "Question 13:"
read q13
q13=$(echo -n "$q13" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q13 == $a13 ]]; then o13="13. Correct"; else o13="13. Incorrect"; fi
echo -n "Question 14:"
read q14
q14=$(echo -n "$q14" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q14 == $a14 ]]; then o14="14. Correct"; else o14="14. Incorrect"; fi
echo -n "Question 15:"
read q15
q15=$(echo -n "$q15" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q15 == $a15 ]]; then o15="15. Correct"; else o15="15. Incorrect"; fi
echo -n "Question 16:"
read q16
q16=$(echo -n "$q16" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q16 == $a16 ]]; then o16="16. Correct"; else o16="16. Incorrect"; fi
echo -n "Question 17:"
read q17
q17=$(echo -n "$q17" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q17 == $a17 ]]; then o17="17. Correct"; else o17="17. Incorrect"; fi
echo -n "Question 18:"
read q18
q18=$(echo -n "$q18" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q18 == $a18 ]]; then o18="18. Correct"; else o18="18. Incorrect"; fi
echo -n "Question 19:"
read q19
q19=$(echo -n "$q19" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q19 == $a19 ]]; then o19="19. Correct"; else o19="19. Incorrect"; fi
echo -n "Question 20:"
read q20
q20=$(echo -n "$q20" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q20 == $a20 ]]; then o20="20. Correct"; else o20="20. Incorrect"; fi
echo -n "Question 21:"
read q21
q21=$(echo -n "$q21" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q21 == $a21 ]]; then o21="21. Correct"; else o21="21. Incorrect"; fi
echo -n "Question 22:"
read q22
q22=$(echo -n "$q22" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q22 == $a22 ]]; then o22="22. Correct"; else o22="22. Incorrect"; fi
echo -n "Question 23:"
read q23
q23=$(echo -n "$q23" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q23 == $a23 ]]; then o23="23. Correct"; else o23="23. Incorrect"; fi
echo -n "Question 24:"
read q24
q24=$(echo -n "$q24" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q24 == $a24 ]]; then o24="24. Correct"; else o24="24. Incorrect"; fi
echo -n "Question 25:"
read q25
q25=$(echo -n "$q25" | tr '[:upper:]' '[:lower:]' | sed 's/ //g' | sha256sum | sed 's/ .*//g')
if [[ $q25 == $a25 ]]; then o25="25. Correct"; else o25="25. Incorrect"; fi
#Output
output="${o1}\n${o2}\n${o3}\n${o4}\n${o5}\n${o6}\n${o7}\n${o8}\n${o9}\n${o10}\n${o11}\n${o12}\n${o13}\n${o14}\n${o15}\n${o16}\n${o17}\n${o18}\n${o19}\n${o20}\n${o21}\n${o22}\n${o23}\n${o24}\n${o25}"
count=$(echo -e "$output" | sed 's/Incorrect//g' | grep -c "Correct")
echo -e "$output"
echo "${count} / 25"
2. In your terminal type:
bash /directory/file
Substitute "/directory/file" for the path to and file name of the file you made (eg: bash ~/quiz).
3. Open your web browser to the quiz webpage so you can see the pictures, and take the quiz.

 

My test results:

1. Correct
2. Correct
3. Correct
4. Incorrect
5. Incorrect
6. Incorrect
7. Incorrect
8. Incorrect
9. Incorrect
10. Correct
11. Incorrect
12. Correct
13. Incorrect
14. Incorrect
15. Correct
16. Incorrect
17. Incorrect
18. Incorrect
19. Incorrect
20. Incorrect
21. Incorrect
22. Incorrect
23. Correct
24. Correct
25. Incorrect
8 / 25


BC AdBot (Login to Remove)

 


#2 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 13,268 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia

Posted 02 August 2016 - 01:44 AM

1. Correct
2. Correct
3. Correct
4. Incorrect
5. Incorrect
6. Incorrect
7. Incorrect
8. Incorrect
9. Incorrect
10. Correct
11. Incorrect
12. Correct
13. Correct
14. Incorrect
15. Correct
16. Incorrect
17. Correct
18. Incorrect
19. Incorrect
20. Correct
21. Incorrect
22. Incorrect
23. Correct
24. Correct
25. Incorrect
11 / 25

Arch Linux .
 
 Come join the fun, chat to Bleeping computer members and staff in real time on Discord.
 
The BleepingComputer Official Discord Chat Server!


#3 Gary R

Gary R

    MRU Admin


  • Malware Response Team
  • 838 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:55 PM

Posted 02 August 2016 - 04:57 AM

Didn't need a program to record my results because there were so few that I knew, that I could remember which ones I got right (mint, feather, coyote, arch).  :wink:



#4 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:01:55 PM

Posted 03 August 2016 - 01:08 AM

14/25 (you'd expect at least that?) but I have got to try that script yet, lol.

 

Spelling mistake in the first answer, needs a "b".

 

Nice one, hf.

 

:wizardball:



#5 DodoIso

DodoIso

  • Members
  • 61 posts
  • OFFLINE
  •  
  • Local time:10:55 PM

Posted 03 August 2016 - 11:57 PM

For me, only m**t and a**h.  LOL!!!  The only ones on the list that I tried to install.  Can you tell I'm BSD?



#6 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 04 August 2016 - 12:26 AM

@NickAu

11 / 25


Nice job. You did better than me, and I've seen the answers :P.
 
@Gary R

Didn't need a program to record my results because there were so few that I knew, that I could remember which ones I got right (mint, feather, coyote, arch).  :wink:


Yeah, it was a hard list. I haven't heard of all the distros on there before.

@wizardfromoz

Spelling mistake in the first answer, needs a "b".


Good catch Wiz



#7 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:55 AM

Posted 04 August 2016 - 12:42 AM

 

Good catch Wiz

 

Sandshoe ... that's thank you, lol.

 

I tip me hat to the educational institution that have their own Distro, goodonem ... but unless you're in the academic circles, or perhaps their local LUG (Linux User Group) it might remain obscure, and no-one will get more than 24/25 for the quiz?

 

And curse you, hf ... now I have a few more "wanna tries" I'd like to look at, lol.

 

:wizardball: Wiz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users