“Many times I have come across seemingly hopeless situations where a program when compiled and installed in GNU/Linux just fails to run. In such situations after I have tried every trick in the book like searching on the net and posting questions to Linux forums, and still failed to resolve the problem, I turn to the last resort which is trace the output of the misbehaving program. Tracing the output of a program throws up a lot of data which is not usually available when the program is run normally. And in many instances, sifting through this volume of data has proved fruitful in pin pointing the cause of error.”
strace: a Powerful Troubleshooting Tool for Linux Users
Submitted by anonymous 2006-05-05 Linux 5 Comments
Strace has saved me more than once troubleshooting issues on various Linux servers. In Solaris/HP-UX, the equivalent is truss even though it might not be installed by default.
This article comes from Ravi’s blog http://linuxhelp.blogspot.com It’s one of the most solid Linux System Administration blogs I’ve ever found.
Another really good one is nixCraft’s sys admin blog: