How do I debug a shell script?



How do I debug a shell script?..

Answer / Om Prakash

Debugging a shell script can be done by using print statements (echo in bash), running the script with the -x flag, or by identifying and correcting syntax errors.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What is web script?

1 Answers  


How do you print the output the same string which is typed in command line. how do you write the shell script or command for this. if i entered "Hello" in command line, it should print 'Hello', if i say "Hello Welcome", i should get the "Hello Welcome" as output.?

3 Answers   IBM, Symphony,


What is basename in shell script?

1 Answers  


What is echo $shell?

1 Answers  


What are the zombie processes?

1 Answers  


What is the use of script interpreter in shell scripting?

3 Answers  


What are the four fundamental components of every file system on linux?

1 Answers  


What are the types of script?

1 Answers  


write a shell program to check wheather a given string is pallindrome or not?

4 Answers  


I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

1 Answers  


What are the two files of crontab command?

1 Answers  


How will you connect to a database server from linux?

1 Answers  


Categories