Skip to content

Instantly share code, notes, and snippets.

@manuwell
Last active July 23, 2016 14:25
Show Gist options
  • Save manuwell/1603a3d149d66a2f4075 to your computer and use it in GitHub Desktop.
Save manuwell/1603a3d149d66a2f4075 to your computer and use it in GitHub Desktop.
Debugging Tools

Strace

strace -e trace=open,read ls /

File descriptos

  • which files and libs process PID uses lsof -p PID

  • which ports and protocols are listening lsof -s -p PID

UDP publish

echo "Never gonna give you up" > nc -4u host 1212

Network watches

tcpdump -A -s0 -ilo tcp port 6379

tcpdump [-Asi] COMMAND

-A for ASCII -s for size of packets. If 0, no size -i for the network interface

COMANND listen a port, a socker

@marioplumbarius
Copy link

There is a great utility called 'ldd', which can list depedent libraries used by a given executable file.

PS: I've just finished reading 4linux's 501 you borrowed me. Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment