thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Foundational

Scripting

Writing small programs, typically in interpreted languages such as Bash, Python, or PowerShell, to automate repetitive tasks.

Definition

Scripts glue together tools and APIs for tasks like backups, provisioning, and log processing. Good scripts are idempotent where possible, handle errors (set -euo pipefail in Bash), avoid hard-coded secrets, and are version-controlled.

Example

#!/usr/bin/env bash set -euo pipefail for h in $(cat hosts); do ssh "$h" uptime; done

Exam tip

set -e stops a Bash script on errors; the shebang line selects the interpreter.

Related terms