How to make bash print every command before executing it

set -x makes bash print every command before executing it.

Or

bash -x my-script.sh

Comments