Adding a new command to the Tshark cheat-sheet

It's not a big deal, but Tshark can print a list of
interfaces on which it can capture packets !
So yeah, I wanted to add it. :-)
This commit is contained in:
I2SAM 2023-04-02 17:18:45 +02:00
parent 00094edf4e
commit 152c18c7d1

View File

@ -1,10 +1,15 @@
# Tshark Cheat Sheet # Tshark Cheat Sheet
## List interfaces on which Tshark can capture
```
tshark -D
```
## Capture Packets with Tshark ## Capture Packets with Tshark
``` ```
tshark -i eth0 -w capture-file.pcap tshark -i eth0 -w capture-file.pcap
``` ```
## Read a Pcap with Tshark ## Read a Pcap with Tshark
``` ```
tshark -r capture-file.pcap tshark -r capture-file.pcap