Linux

Capturing traffic on a port in Linux

LinuxNetworkingtcpdumpadvanced

What this snippet does

-nn skips name resolution so the capture keeps up and shows raw addresses.

Expected output

09:14:22.418 IP 10.0.0.4.51422 > 10.0.0.9.5432: Flags [S]

Why practise typing this

Typing networking code builds muscle memory for the symbols and indentation Linux uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More Linux practice

Browse all Linux snippets →