termshark
Terminal user interface for tshark that provides Wireshark-like packet analysis capabilities from the command line
Termshark is a terminal-based network packet analyzer that wraps tshark with a Wireshark-inspired user interface. It reads pcap files and captures live network traffic, displaying packets in an interactive TUI that supports Wireshark's display filters for packet analysis. The tool can reassemble and inspect TCP/UDP flows, view network conversations by protocol, and copy packet ranges to the clipboard directly from the terminal.
Built in Go, termshark compiles to a single executable and runs on Linux, macOS, BSD variants, Android (via Termux), and Windows. It requires tshark (version 1.10.2 or higher) as a runtime dependency and must be in the system PATH. The tool is particularly useful for debugging network issues on remote machines where transferring large pcap files is impractical, allowing analysis directly on the target system.
Termshark supports both offline analysis of existing pcap files and live capture from network interfaces where tshark has appropriate permissions. Recent versions include packet search functionality and customizable profiles for colors and columns, expanding its analysis capabilities beyond basic packet inspection.
Installation
# via Go
go install github.com/gcla/termshark/v2/cmd/termshark@v2.4.0
# via Homebrew
brew install termshark

Alternatives & related tools
qrcp
Go CLI that transfers files between a computer and a mobile device over Wi-Fi by printing a QR code in the terminal that links to a temporary local web server.
httpx
HTTP probing CLI from ProjectDiscovery that takes hosts, URLs or CIDRs and reports status, title, TLS, tech stack, CDN and more, with matchers and filters.
wuzz
Interactive terminal UI for inspecting and editing HTTP requests and responses, with cURL-style arguments and regex, HTML and JSON response filtering.
wego
Terminal weather client showing 1β7 day forecasts from several backends, rendered as an ASCII-art table, emoji, markdown, or JSON.
bombardier
HTTP(S) benchmarking tool written in Go that uses fasthttp by default, with optional net/http for HTTP/2, and reports latency, requests/sec and throughput.
add a badge to your README
Maintain termshark? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/termshark?utm_source=badge)<a href="https://www.trmn.sh/tools/termshark?utm_source=badge"><img src="https://www.trmn.sh/badge/termshark.svg" alt="Featured on trmn" height="20"></a>