Unix System debugging Tips

Posted by admin on March 15, 2008 under Programming | Comments are off for this article

** strace

See systemcalls:

strace <cmd>
Unix System debugging Tips
** lsof

List open files and network connections of local process:

lsof -p <pid>

When no option is given, lsof prints open files for all processes for which this information is available. Generally, lsof needs to be run as root.

** strings

See ascii data in binary file (e.g. version number or name of default configuration file used)

strings /usr/bin/<binary>

** gdb

Comments are closed.