Skip to content

Bash Scripting For Automation Practice Exam

Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.

📝 50 questions · ⏱ 60 minutes · 🎯 Pass mark 70% · 🆓 Free, no signup

Exam details

  • 50 questions drawn from 120 cards
  • Countdown timer — auto-submits when time runs out
  • Pass mark 70% (real certification threshold)
  • Full review of wrong answers at the end
  • No signup required — save your score with a free account

Sample Questions

5 shown

What is Bash?

Show ▼

Bash (Bourne Again SHell) is a Unix shell and command language written as a free software replacement for the Bourne shell (sh). It is the default login shell on most Linux distributions and macOS (until Catalina).

What file extension is conventionally used for Bash scripts?

Show ▼

.sh. While not strictly required for execution, .sh signals intent and lets tooling treat the file as a shell script.

What must the first line of an executable Bash script be?

Show ▼

A shebang line, e.g. #!/usr/bin/env bash or #!/bin/bash, which tells the kernel which interpreter to invoke.

What command makes a script file executable?

Show ▼

chmod +x script.sh (or chmod 755 script.sh).

How do you run a script located in the current directory?

Show ▼

./script.sh. The dot-slash is required because the current directory is not normally in $PATH.

🎯 Take the Bash Scripting For Automation Practice Exam