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

What are the various stages of a linux process it passes through?

859


What is sudo command?

755


What are the different types of shell scripting?

775


Calculate a real number calculation directly from the terminal and not any shell script.

921


What is the default ubuntu terminal?

832


I have 2 files and I want to print the records which are common to both.

931


What makes c shell a more preferable option than the bourne shell?

751


How to print all the arguments provided to the script?

773


What is console line?

756


In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

845


What is awk in shell scripting?

799


Which shell is the best?

762


Why should we use shell scripts?

824


What are types of shells?

769


What are the different types of variables used in shell script?

760