What are the three main forms of enabling debugging in a
shell script?

Answer Posted / neha c

set -vx
v:- verbose option(this option outputs every line of the
script onto the standard output console)
x:- this option substitutes every variable's value which is
used in the shell script.

To turn off the debugging option, use set +vx.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are shells born?

557


How do you know which shell I am using?

587


What is the command to find out today's date?

587


How to get the first line from a file using just the terminal?

597


What is the purpose of scripting?

579






What are filters explain sort with all the options available?

932


What is a shell in operating system?

590


How to open a read-only file in the shell?

644


Where are cowrie shells found?

578


What is path variable bash?

571


How do I run a powershell script?

576


What language is bash?

491


What is shell scripting used for?

572


What happens when you type ls?

563


How will you emulate wc –l using awk?

911