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

Answer Posted / anchal

set -vx

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I send a mail with a compressed file as an attachment?

556


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1716


What are the advantages of using shell scripts?

586


Is shell scripting difficult?

559


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

532






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

626


How will you connect to a database server from linux?

557


What does chmod do?

576


What are script files?

549


Suppose you execute a command using exec, what will be the status of your current process in the shell?

580


Where is bash history?

506


What is the first line of a shell script called?

571


How do I save a powershell script?

558


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

661


What is the lifespan of a variable inside a shell script?

1124