This is our old Q&A Site. Please post any new questions and answers at

I am trying to open Wireshark in the command prompt using sudo -i Wireshark, but it keeps telling me command not found. When I type in just Wireshark, the program will open. Any idea why I cannot open Wireshark via sudo command?

asked 25 Sep '13, 13:38

Renee's gravatar image

accept rate: 0%

edited 25 Sep '13, 14:04

Kurt%20Knochner's gravatar image

Kurt Knochner ♦

sudo -i Wireshark

You write Wireshark with an uppercase W, while the binary is called wireshark. If that was just a typo in your question, what is the output of the following commands?

which wireshark
sudo wireshark
sudo which wireshark

I suspect the binary wireshark is not in the search path of the root user.

BTW: You should not run Wireshark as root. See here:

If you don't see any interfaces as non-root, please run the following command (on Linux):

sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

Please adjust the path, if dumpcap is not installed to /usr/bin.


permanent link

answered 25 Sep '13, 14:01

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
accept rate: 15%

edited 25 Sep '13, 15:14

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 25 Sep '13, 13:38

question was seen: 4,700 times

last updated: 25 Sep '13, 15:14

p​o​w​e​r​e​d by O​S​Q​A