This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to start wireshark in command line to directly capture packets on a given interface?

0
1

Launching

wireshark -i wlan0

in Linux lead to the main wireshark menu and not to the capture directly.

How to directly capture on wlan0 without having to choose the device from the menu.

asked 31 Oct '16, 08:55

user31415's gravatar image

user31415
26569
accept rate: 0%

edited 31 Oct '16, 09:25


One Answer:

2

As the manual page says, add the -k option to your command line to start capture immediately.

answered 31 Oct '16, 10:26

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%

edited 31 Oct '16, 10:27