Bash (Coding) Quiz

Bash shell scripting — the automation and glue-code language behind most Linux/Unix system administration.

This category currently has 60 questions in the SERVBG quiz bank. Below are a few sample questions — the full interactive quiz shuffles through the whole set with instant scoring.

Sample questions

What does $? expand to in Bash?
Which expansion gives the length of the variable var?
What does ${var:-default} expand to?
What does ${var:=default} differ from ${var:-default} in?
What does ${var:+other} expand to?
Start the full quiz ›

Related categories

Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
187 questions
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
186 questions
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
150 questions
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
148 questions
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.
145 questions