Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wireshark installed but not working on Amazon linux

Tags:

I have installed the wireshark on amazon linux through the following command:

sudo yum install wireshark

The following commands gives me this output:

Package wireshark-1.8.10-25.22.amzn1.x86_64 already installed and latest version

But when i try to run wireshark command it gives the following error:

bash: wireshark: command not found

Am i missing something. Please note that i have access as root user. Any help is appreciated.

like image 593
Hassan Abbas Avatar asked Jul 05 '17 11:07

Hassan Abbas


1 Answers

The wireshark command does not work. I resolved the issue by using the command below:

tshark -i eth0 -f "udp port 8080" -w captureFile.pcap

The following command captures the packets on eth0(interface name) with the filter on udp port number 8080 and then saves it to the file captureFile.pcap

like image 183
Hassan Abbas Avatar answered Oct 11 '22 16:10

Hassan Abbas