Packet analyzer (CLI Wireshark)
medium risk
Captures and decodes packets. See the flags and examples below, and run `man tshark` for the full reference.
| Flag | Meaning |
|---|---|
-i | Interface |
-f | Capture filter |
-Y | Display filter |
-w | Write pcap |
-c | Packet count |
tshark -i eth0 -f "port 53" -c 20DNS capture · explain & risk-check →Reference text is hand-written and may be incomplete — check man tshark for your version. Test destructive commands on a non-production system first.