Unix System debugging Tips
Posted on March 15th, 2008
** strace
-- Sponsored Links --
-- Sponsored Links --
See systemcalls:
strace <cmd>

** 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
Filed under Programming |
Comments are closed.