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

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

0 Answers  


How does ls command work?

0 Answers  


Create a bash shell script that removes all files whose names end with a "~" from your home directory and subdirectories. Name this script "cleanup.sh"

6 Answers  


When you login to a c shell, which script would be run first?

2 Answers  


What is the way to do multilevel if-else's in shell scripting?

0 Answers  






How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.

6 Answers   TCS,


defination of mapfile in winrunner?

0 Answers  


What is the difference between bash and shell?

0 Answers  


What is path in shell script?

0 Answers  


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

0 Answers  


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

0 Answers  


How many fields are present in a crontab file and what does each field specify?

0 Answers  


Categories