Posts tagged as:

debug shell script

Raju asks:
How can I Debug a shell scripts?
This is most common question asked by new admins or UNIX user.
Shell scripting debugging can be boring job (read as not easy). There are various ways to debug a shell script.
-x option to debug a shell script
Run a shell script with -x option.
$ bash -x script-name
$ bash -x [...]

{ 9 comments }