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 FILEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -nn | option | Disable address and port name translation |
| -r | option | Read capture file |
| FILE | operand | Capture 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