tcpdump

tcpdump -A -i en1 -s0

Context:

I had some weblog problems this week, and needed to see what was happening when I was trying to log in.

Explanation:

  • -A outputs as ASCII
  • -s0 figures out the packet length automatically
  • -i en1 specifies the network interface, in this case en1 since I was using wireless not cable Ethernet

Run as root or use sudo.

This entry was posted in Nerdliness, Shell tricks and tagged , , , . Bookmark the permalink.