Skills101
← All practice quizzes

Quiz: Bash Scripting for DevOps

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Turn the commands you type every day into scripts that run the same way every time. Variables, arguments, quoting, exit codes, loops, functions, set -euo pipefail and cron, ending with a real log health-check script.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What exit code means a command succeeded?

  2. Question 2

    In npm test && npm run build, when does the build run?

  3. Question 3

    Which line correctly creates a variable in bash?

  4. Question 4

    A variable file holds exam marks.txt. Why is rm "$file" safer than rm $file?

  5. Question 5

    What does set -e do in a script?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →