Which option allows you to specify the interface from which to sniff packets using tshark?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

Using tshark, the option that allows you to specify the interface from which to sniff packets is indeed the -i option. When capturing network packets, it's essential to determine the correct network interface to use, as this will dictate from where the traffic will be monitored.

The -i option is followed by the name or identifier of the interface such as eth0, wlan0, or any other designated network interface available on the system. This capability is crucial for network analysis, troubleshooting, and ensuring that the right data is being captured.

Each of the other options serves different purposes. For instance, -p is used to set the promiscuous mode; -f specifies a capture filter to limit the packets captured based on certain criteria; -o is for setting specific preferences or options. While these options are important for fine-tuning packet capture behavior, they do not directly specify the capture interface itself. Thus, the clarity and direct function of the -i option make it the correct choice for this question.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy