[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Shell Scripting question

how do I echo the commands used in a script (ksh)

(If I use ls, it lists the files, but I want the 'ls' to be echoed to the screen as well)
Los Angeles1
Los Angeles1
1 Solution
If you want to see the commands as they're executed try

set -x

in your script.

For debugging, try "set -xv"



Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now