Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tshark: add page #9098

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pages/linux/wireshark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# tshark

> TShark is the CLI version of Wireshark which is a packet sniffer.
> Used to capture and analyze network traffic.
> More information: <https://www.wireshark.org/docs/man-pages.tshark.html>.

- List Interfaces:

`tshark --list-interfaces`

- Write packet information to a file:

`tshark --interface {{interface_name}} -w {{path/to/file.pcap}}`

- Read the packet information from a file:

`tshark -r {{path/to/file.pcap}}`

- Capture a specific number of packets:

`tshark -c {{packet_count}}`

- Use capture filters to filter packets before they get analyzed:

`tshark -f {{"filter_name"}}`

- Use display filters to filter frames, ip packets or segments:

`tshark -Y {{"display_filter"}}`