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

Answers were Sorted based on User's Feedback



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

Answer / guest

set -x

Is This Answer Correct ?    6 Yes 0 No

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

Answer / visitor

sh -x

Is This Answer Correct ?    3 Yes 0 No

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

Answer / anchal

set -vx

Is This Answer Correct ?    3 Yes 0 No

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

Answer / learner

set -x
set -v
set -n

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 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

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

Answer / arun singh

set -x
set -v
set -f

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What is the use of "$#" in shell scripting?

0 Answers  


What is the difference between bash and shell?

0 Answers  


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

0 Answers  


What is a shell script in windows?

0 Answers  


Explain about debugging?

0 Answers  






What is the equivalent of a file shortcut that we have a window on a linux system?

0 Answers  


determine the output of the following command: echo ${new:-variable}

0 Answers  


What are the different types of commonly used shells on a typical linux system?

0 Answers  


Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.

1 Answers  


There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A

1 Answers   Wipro,


Write down the syntax for all the loops in shell scripting.

0 Answers  


How will you list only the empty lines in a file (using grep)?

4 Answers   ANZ,


Categories