What are the three main forms of enabling debugging in a
shell script?
Answers were Sorted based on User's Feedback
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 |
Write a shell script to get current date, time, user name and current working directory.
why did you apply to shell
What is difference between bash and shell?
What are the various stages of a linux process it passes through?
What does the sh command do?
How would you compare the strings in a shell script?
What can scripts do?
What are the different methods available to run a shell script?
How do I edit a .sh file?
How can I set the default rwx permission to all users on every file which is created in the current shell?
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
What is the first line in a shell script?