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
What are the various stages of a linux process it passes through?
What is sudo command?
What are the different types of shell scripting?
Calculate a real number calculation directly from the terminal and not any shell script.
What is the default ubuntu terminal?
I have 2 files and I want to print the records which are common to both.
What makes c shell a more preferable option than the bourne shell?
How to print all the arguments provided to the script?
What is console line?
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?
What is awk in shell scripting?
Which shell is the best?
Why should we use shell scripts?
What are types of shells?
What are the different types of variables used in shell script?