Wireshark Filters Commands

Complete Wireshark Filters commands reference — 82 commands across 2 categories. Quick reference cheat sheet for Windows, macOS & Linux.

Display Filters (7)

ShortcutAction
ip.addr == 192.168.1.1IP filter
tcp.port == 443Port filter
httpHTTP filter
dnsDNS filter
tcp.flags.syn == 1SYN packets
frame.len > 1000Size filter
!(arp or dns)Exclude filter

Command-line Options (75)

ShortcutAction
wireshark -a --autostopSpecify a criterion that specifies when Wireshark is to stop writing to a capture file.
wireshark -b --ring-bufferCause Wireshark to run in "multiple files" mode. In "multiple files" mode, Wireshark will write
wireshark -B --buffer-sizeSet capture buffer size (in MiB, default is 2 MiB). This is used by the capture driver
wireshark -cSet the maximum number of packets to read when capturing live data. Acts the same as -a
wireshark -CStart with the given configuration profile
wireshark --capture-commentWhen performing a capture file from the command line, with the -k flag, add a capture comment
wireshark -D --list-interfacesPrint a list of the interfaces on which Wireshark can capture, and exit. For each network
wireshark --displaySpecifies the X display to use. A hostname and screen (otherhost:0.0) or just a screen (:0.0)
wireshark -fSet the capture filter expression. This option can occur multiple times. If used before
wireshark -FWhen performing a capture file from the command line, with the -k option, set the file format
wireshark --fullscreenStart Wireshark in full screen mode (kiosk mode). To exit from fullscreen mode, open the View
wireshark -gAfter reading in a capture file using the -r flag, go to the given packet number
wireshark -h --helpPrint the version number and options and exit
wireshark -i --interface -Set the name of the network interface or pipe to use for live packet capture. Network interface
wireshark -I --monitor-modePut the interface in "monitor mode"; this is supported only on IEEE 802.11 Wi-Fi interfaces
wireshark -jUse after -J to change the behavior when no exact match is found for the filter. With this
wireshark -JAfter reading in a capture file using the -r flag, jump to the packet matching the filter
wireshark -kStart the capture session immediately. If the -i flag was specified, the capture uses
wireshark -lTurn on automatic scrolling if the packet display is being updated automatically as packets
wireshark -L --list-data-link-typesList the data link types supported by the interface and exit
wireshark --list-time-stamp-typesList time stamp types supported for the interface. If no time stamp type can be set, no time
wireshark -oSet a preference or recent value, overriding the default value and any value read
wireshark -p --no-promiscuous-modeDon't put the interface into promiscuous mode. Note that the interface might be in promiscuous
wireshark -PSpecial path settings usually detected automatically. This is used for special cases, e.g.
wireshark -r --read-fileRead packet data from infile, can be any supported capture file format
wireshark -R --read-filterWhen reading a capture file specified with the -r flag, causes the specified filter
wireshark -s --snapshot-lengthSet the default snapshot length to use when capturing live data. No more than snaplen bytes
wireshark --temp-dirSpecifies the directory into which temporary files (including capture files) are to be written.
wireshark --time-stamp-typeChange the interface's timestamp method. See --list-time-stamp-types
wireshark --update-intervalSet the length of time in milliseconds between new packet reports during a capture. Also sets
wireshark -v --versionPrint the full version information and exit
wireshark -wSet the default capture file name, or '-' for standard output
wireshark -XSpecify an option to be passed to an Wireshark module. The eXtension option is in the form
wireshark -y --linktypeIf a capture is started from the command line with -k, set the data link type to use while
wireshark -Y --display-filterStart with the given display filter
wireshark -zGet Wireshark to collect various types of statistics and display the result in a window
wireshark -z helpDisplay all possible values for -z
wireshark -z afp,srt[,filter]Show Apple Filing Protocol service response time statistics
wireshark -z conv,type[,filter]Create a table that lists all conversations that could be seen in the capture. type specifies
wireshark -z dhcp,stat[,filter]Show DHCP (BOOTP) statistics
wireshark -z expertShow expert information
wireshark -z fc,srt[,filter]Collect call/reply SRT (Service Response Time) data for FC. Data collected is the number
wireshark -z h225,counter[,filter]Count ITU-T H.225 messages and their reasons. In the first column you get a list of H.225
wireshark -z h225,srt[,filter]Collect request/response SRT (Service Response Time) data for ITU-T H.225 RAS. Data collected
wireshark -z io,statCollect packet/bytes statistics for the capture in intervals of 1 second. This option will open
wireshark -z ldap,srt[,filter]Collect call/reply SRT (Service Response Time) data for LDAP. Data collected is the number
wireshark -z megaco,srt[,filter]Collect request/response SRT (Service Response Time) data for MEGACO.
wireshark -z mgcp,srt[,filter]Collect request/response SRT (Service Response Time) data for MGCP.
wireshark -z mtp3,msus[,]Show MTP3 MSU statistics
wireshark -z multicast,stat[,]Show UDP multicast stream statistics
wireshark -z rpc,programsCollect call/reply SRT data for all known ONC-RPC programs/versions. Data collected
wireshark -z scsi,srt,cmdset[,]Collect call/reply SRT (Service Response Time) data for SCSI commandset <cmdset>. Commandsets
wireshark -z sip,stat[,filter]This option will activate a counter for SIP messages. You will get the number of occurrences
wireshark -z smb,srt[,filter]Collect call/reply SRT (Service Response Time) data for SMB. Data collected is the number
wireshark -z voip,callsThis option will show a window that shows VoIP calls found in the capture file. This
wireshark -z wlan,stat[,]Show IEEE 802.11 network and station statistics
wireshark -z wsp,stat[,]Show WSP packet counters
wireshark -dLike Wireshark's Decode As... feature, this lets you specify how a layer type should be
wireshark --disable-all-protocolsDisable dissection of all protocols
wireshark --disable-protocol[,,...]Disable dissection of proto_name. Use a proto_name of ALL to override your chosen profile's
wireshark --disable-heuristicDisable dissection of heuristic protocol
wireshark --enable-protocol[,,...]Enable dissection of proto_name. Use a proto_name of ALL to override your chosen profile's
wireshark --enable-heuristicEnable dissection of heuristic protocol
wireshark -KLoad kerberos crypto keys from the specified keytab file. This option can be used multiple
wireshark -nDisable network object name resolution (such as hostname, TCP and UDP port names); the -N
wireshark -NTurn on name resolving only for particular types of addresses and port numbers, with name
wireshark --only-protocolsOnly enable dissection of these protocols, comma separated. Disable everything else
wireshark -uSpecifies how packet timestamp formats in -t which are relative times
wireshark --log-levelSet the active log level. Supported levels in lowest to highest order are "noisy", "debug"
wireshark --log-fatalAbort the program if any messages are logged at the specified level or higher. For example
wireshark --log-domainsOnly print messages for the specified log domains, e.g. "GUI,Epan,sshdump". List of domains
wireshark --log-debugForce the specified domains to log at the "debug" level. List of domains must be
wireshark --log-noisyForce the specified domains to log at the "noisy" level. List of domains must be
wireshark --log-fatal-domainsAbort the program if any messages are logged for the specified log domains. List of domains
wireshark --log-fileWrite log messages and stderr output to the specified file
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

tcpdump ss / netstat Nmap iptables / Firewall Linux Bash / Shell

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts

🤖 Ask AI about Wireshark Filters shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok
📜 Every shortcut on this page is taken from the official Wireshark Filters documentation — wireshark.org
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.