tshark

Packet analyzer (CLI Wireshark)

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Captures and decodes packets. See the flags and examples below, and run `man tshark` for the full reference.

Common flags
FlagMeaning
-iInterface
-fCapture filter
-YDisplay filter
-wWrite pcap
-cPacket count
Examples
tshark -i eth0 -f "port 53" -c 20DNS capture · explain & risk-check →
Related
tcpdump
Open the full explainer →More in Debugging & Performance

Reference text is hand-written and may be incomplete — check man tshark for your version. Test destructive commands on a non-production system first.