Where to start First steps track · 15 stages
Linux Labs

Bash: text processing and scripts

Quiz: reliable scripts

Question 1 of 10
Leave the quiz

The exit status and $?, a condition on a command's status, curl -f and --max-time, set -euo pipefail, a service's environment and journal, flock. The questions follow the lessons “Exit status and a healthcheck” and “A script on a schedule: environment, log, lock”.

10 questions · threshold 70%

Read the output

The app on port 8080 is stopped. What will the last command print?

$ curl -s http://127.0.0.1:8080/health
$ echo "checked"
checked
$ echo $?
A–D or ↵ Sign in to answer
Loading…