Analyze Captures With tshark
Read pcap files and print packet summaries or field values.
01Command
$ tshark -r capture.pcap02What it does
tshark applies Wireshark's dissectors without a GUI, so you can filter with -Y, select fields with -T fields -e and write statistics with -z. It is scriptable and works over SSH on servers.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Debian package: tsharkEvidence: Debian packages tshark, the command-line version of Wireshark, which dissects capture files.
- Wireshark / tsharkEvidence: Debian packages tshark, the command-line version of Wireshark, which dissects capture files.
Last verified: 2026-09-22 · Category: Network
06Related solutions
Use free -h to see used, free, and available memory plus swap in GB/MiB instead of raw kilobytes.
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.