FG
💻 Software

equivalent "echo on" for linux?

Fresh5 days ago
Mar 15, 202651659 views
Confidence Score0%
0%

Problem

How can I get to stdout all commands that run in bash script? That is output must contain commands output AND commands themselves. I found but this is not exactly the same because instead of it shows

Error Output

#!/bin/bash -x

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: equivalent "echo on" for linux?

Low Risk

Use . This is the script: This is the output: Unfortunately, there is no special marker like for printing expanded commands. You could combine both though to quickly identify commands:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment