Multiple choice

Which of the following is the correct shell command to debug a script?

  1. Prompt$bash -x script-name
  2. Prompt$chmod +x script.sh
  3. Prompt$chmod u+x script.sh
  4. Prompt$./hello.sh
  5. #!/bin/bashecho Hello, India!

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct shell script to debug a script.