commands

tcpdump — Read an offline capture

Read prebuilt capture without interface access or name lookups. Restrict capture data to authorized scope. Use a fresh private workspace; do not apply to a real system.

Formal Syntax & Structure

linux syntaxlinux
tcpdump -nn -r FILE

Parameters & Attributes

NameTypeDescription
-nnoptionDisable address and port name translation
-roptionRead capture file
FILEoperandCapture path

Return Value

exit status and output

Offline -r decodes packets from the capture file to stdout, with diagnostics or summaries potentially on stderr. A successful read does not prove that a live interface can be captured or that packets match a particular expectation.

Working Example

Example Snippetlinux
tcpdump -nn -r sample.pcap
Linux Reference