set -x

Category: Shell & Bash

set -x

Print each command and its arguments before executing (debug)

Prints each command before executing it — like a trace mode. Invaluable for debugging scripts to see exactly what's running.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.